Start implementing gocage start
This commit is contained in:
parent
ea25db2f27
commit
30209d2890
11
cmd/root.go
11
cmd/root.go
@ -66,6 +66,16 @@ ex: gocage list srv-db srv-web`,
|
|||||||
StopJail(args)
|
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(versionCmd)
|
||||||
rootCmd.AddCommand(listCmd)
|
rootCmd.AddCommand(listCmd)
|
||||||
rootCmd.AddCommand(stopCmd)
|
rootCmd.AddCommand(stopCmd)
|
||||||
|
rootCmd.AddCommand(startCmd)
|
||||||
}
|
}
|
||||||
|
|
||||||
func initConfig() {
|
func initConfig() {
|
||||||
|
Loading…
Reference in New Issue
Block a user