Start implementing gocage start

This commit is contained in:
yo 2021-12-21 20:48:15 +01:00
parent ea25db2f27
commit 30209d2890

View File

@ -66,6 +66,16 @@ ex: gocage list srv-db srv-web`,
StopJail(args)
},
}
startCmd = &cobra.Command{
Use: "start",
Short: "start jail",
Run: func(cmd *cobra.Command, args []string) {
// Get the inventory
ListJails(args, false)
StartJail(args)
},
}
)
@ -87,6 +97,7 @@ func init() {
rootCmd.AddCommand(versionCmd)
rootCmd.AddCommand(listCmd)
rootCmd.AddCommand(stopCmd)
rootCmd.AddCommand(startCmd)
}
func initConfig() {