aboutsummaryrefslogtreecommitdiffstats
path: root/agents/demo/tools.sh
diff options
context:
space:
mode:
Diffstat (limited to 'agents/demo/tools.sh')
-rwxr-xr-xagents/demo/tools.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/agents/demo/tools.sh b/agents/demo/tools.sh
new file mode 100755
index 0000000..4b5849b
--- /dev/null
+++ b/agents/demo/tools.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+set -e
+
+# @cmd Get the system info
+get_sysinfo() {
+ echo "OS: $(uname)"
+ echo "Arch: $(arch)"
+ echo "User: $USER"
+}
+
+# See more details at https://github.com/sigoden/argc
+eval "$(argc --argc-eval "$0" "$@")"