aboutsummaryrefslogtreecommitdiff
path: root/commands/freebsd/jails
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2022-03-25 15:44:44 +0000
committerJordan Bracco <href@random.sh>2022-03-25 15:44:44 +0000
commitbabd144393c0cbfdc28fb475190d9a552070b240 (patch)
tree927edd0818be95134ece7b819311b0269b3c5fdc /commands/freebsd/jails
parentInitial PoC (diff)
slowly but surely (maybe)HEADmain
Diffstat (limited to 'commands/freebsd/jails')
-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}"