aboutsummaryrefslogtreecommitdiff
path: root/commands/freebsd/jails/list
diff options
context:
space:
mode:
Diffstat (limited to 'commands/freebsd/jails/list')
-rwxr-xr-xcommands/freebsd/jails/list6
1 files changed, 6 insertions, 0 deletions
diff --git a/commands/freebsd/jails/list b/commands/freebsd/jails/list
new file mode 100755
index 0000000..b7e009e
--- /dev/null
+++ b/commands/freebsd/jails/list
@@ -0,0 +1,6 @@
+#!./cloyster
+
+ensure_command_exists jls
+
+list=$(jls --libxo json | jq -r '.["jail-information"].jail | @json')
+return_result "${list}"