Set handler argument
Sets an argument to the handler function, allowing it to be unspecified when called
Function SetHandlerArgument(Val Project, Val HandlersKey, Val Argument, Val Value, Val Strict = True) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Project | --proj | String | ✔ | Project filepath |
HandlersKey | --handler | String | ✔ | Handlers key |
Argument | --arg | String | ✔ | CLI argument (option) for the handler function |
Value | --value | String | ✔ | String argument value |
Strict | --strict | Boolean | ✖ | True > argument cannot be overwritten with data from the query |
Returns: Structure Of KeyAndValue - Setting result
- Bash
- CMD/Bat
melezh SetHandlerArgument \
--proj "/proj.melezh" \
--handler "my-key" \
--arg "text" \
--value "Hello world!" \
--strict true
melezh SetHandlerArgument ^
--proj "/proj.melezh" ^
--handler "my-key" ^
--arg "text" ^
--value "Hello world!" ^
--strict true
Result
{
"data": {
"active": 1,
"function": "CreatePost",
"key": "my-key",
"library": "vk",
"method": "FORM",
"args": [
{
"arg": "text",
"strict": 1,
"value": "Hello world!"
}
]
},
"result": true
}