summaryrefslogtreecommitdiffstats
path: root/dev-shell
diff options
context:
space:
mode:
Diffstat (limited to 'dev-shell')
-rwxr-xr-xdev-shell11
1 files changed, 10 insertions, 1 deletions
diff --git a/dev-shell b/dev-shell
index 397c7af..9e64500 100755
--- a/dev-shell
+++ b/dev-shell
@@ -45,6 +45,7 @@ EOF
Available commands:
Fetch object: get <path>
Create/update object: put <path> <JSON content>
+ Add member to set: post <path> <JSON content>
Delete object: delete <path>
Start transaction: start
@@ -65,12 +66,20 @@ EOF
_acf_req "$path" "$@"
}
+ function _acf_post_req {
+ _acf_obj_req "$2" -d "$3" -X $1
+ }
+
function get {
_acf_obj_req "$1"
}
function put {
- _acf_obj_req "$1" -d "$2" -X PUT
+ _acf_post_req PUT "$@"
+ }
+
+ function post {
+ _acf_post_req POST "$@"
}
function delete {