ListJailProps() : Replace unused args with format + v0.42a WIP
This commit is contained in:
parent
9d7db268cc
commit
3b548e4c85
@ -14,7 +14,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
gVersion = "0.41"
|
||||
gVersion = "0.42a"
|
||||
|
||||
// TODO : Get from $jail_zpool/defaults.json
|
||||
MIN_DYN_DEVFS_RULESET = 1000
|
||||
@ -127,7 +127,12 @@ ex: gocage list srv-db srv-web`,
|
||||
Short: "Print jails properties",
|
||||
Long: "Display jails properties. You can use properties to filter, get or set them.",
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
ListJailsProps(args)
|
||||
out, err := ListJailsProps("text")
|
||||
if err != nil {
|
||||
fmt.Printf("Error listing properties : %v\n", err)
|
||||
} else {
|
||||
fmt.Printf("%s\n", out)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user