Add "gocage get all myjail"

This commit is contained in:
yo
2022-04-03 11:04:01 +02:00
parent 19dd2dfb33
commit 285229009f
3 changed files with 21 additions and 2 deletions

View File

@ -29,6 +29,12 @@ func GetJailProperties(args []string) {
return
}
if isStringInArray(props, "all") {
var result []string
result = getStructFieldNames(jail, result, "")
props = result
}
for _, p := range props {
v, err := getJailProperty(&jail, p)
if err != nil {