aboutsummaryrefslogtreecommitdiff
path: root/lib/subcommands/sysinfo.bash
diff options
context:
space:
mode:
Diffstat (limited to 'lib/subcommands/sysinfo.bash')
-rw-r--r--lib/subcommands/sysinfo.bash11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/subcommands/sysinfo.bash b/lib/subcommands/sysinfo.bash
new file mode 100644
index 0000000..5010798
--- /dev/null
+++ b/lib/subcommands/sysinfo.bash
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+subcommand() {
+ printf "%-15s %s\n" "basedir" "$BASHTARD_BASEDIR"
+ printf "%-15s %s\n" "etcdir" "$BASHTARD_ETCDIR"
+
+ for key in "${!BASHTARD_PLATFORM[@]}"
+ do
+ printf "%-15s %s\n" "$key" "${BASHTARD_PLATFORM[$key]}"
+ done
+}