Make Listjails and Stopjails public to differentiate from internal functions

This commit is contained in:
yo 2021-12-19 12:41:54 +01:00
parent f90de63f87
commit 8fdd0ffbce

View File

@ -47,7 +47,7 @@ It support iocage jails and can coexist with iocage.`,
Jail list can be restricted by adding name on command line
ex: gocage list srv-db srv-web`,
Run: func(cmd *cobra.Command, args []string) {
listJails(args, true)
ListJails(args, true)
},
}
@ -57,8 +57,8 @@ ex: gocage list srv-db srv-web`,
Long: `shutdown jail`,
Run: func(cmd *cobra.Command, args []string) {
// Get the inventory
listJails(args, false)
stopJail(args)
ListJails(args, false)
StopJail(args)
},
}
)