feat: add list-length method to shell functions

This commit is contained in:
Jose Diaz-Gonzalez
2019-11-27 17:08:18 -05:00
parent e3f0160e5f
commit 79b344bbe4
3 changed files with 35 additions and 2 deletions

View File

@@ -63,6 +63,12 @@ fn-plugin-property-list-get-by-value() {
"$PLUGIN_CORE_AVAILABLE_PATH/common/prop" "lismember" "$PLUGIN" "$APP" "$KEY" "$VALUE"
}
fn-plugin-property-list-length() {
declare desc="returns a property list"
declare PLUGIN="$1" APP="$2" KEY="$3"
"$PLUGIN_CORE_AVAILABLE_PATH/common/prop" "llen" "$PLUGIN" "$APP" "$KEY"
}
fn-plugin-property-list-remove() {
declare desc="removes a value from a property list"
declare PLUGIN="$1" APP="$2" KEY="$3" VALUE="$4"