summaryrefslogtreecommitdiffstats
path: root/dev-shell
diff options
context:
space:
mode:
Diffstat (limited to 'dev-shell')
-rwxr-xr-xdev-shell5
1 files changed, 5 insertions, 0 deletions
diff --git a/dev-shell b/dev-shell
index eaacde9..d04935e 100755
--- a/dev-shell
+++ b/dev-shell
@@ -69,6 +69,7 @@ Available commands:
Create/update object: put <path> <JSON content>
Add member to set: post <path> <JSON content>
Delete object: delete <path>
+ Fetch metadata: meta <path>
Start transaction: start
Example: put /awall/zone/internet '{"iface": ["eth0"]}'
@@ -82,6 +83,10 @@ EOF
_acf_start_req / Transaction-ID TXN_ID -X POST
}
+ function meta {
+ _acf_req "/meta$1"
+ }
+
function _acf_obj_req {
local path=/config$1
shift