A component that will take differnet types of contents and parse them into a common object that can be used in the wick flow. Can also create and manipulate new / existing objects. Uses JsonPath notation.
Name | Type | Description |
---|---|---|
content_type |
string |
Name | Type | Description |
---|---|---|
content |
string |
Name | Type | Description |
---|---|---|
output |
object |
Given the following configuration:
Operation configuration as op-config.json
:
{
"content_type": "XXX"
}
$ wick invoke common/object:0.5.0 serialize [email protected] -- --content="XXX"
Or with inline configuration:
$ wick invoke common/object:0.5.0 serialize \
--op-with='{ "content_type":"XXX" }' \
-- --content="XXX"
Name | Type | Description |
---|---|---|
key |
string |
Name | Type | Description |
---|---|---|
value |
object |
Name | Type | Description |
---|---|---|
output |
object |
Given the following configuration:
Operation configuration as op-config.json
:
{
"key": "XXX"
}
$ wick invoke common/object:0.5.0 new [email protected] -- --value="XXX"
Or with inline configuration:
$ wick invoke common/object:0.5.0 new \
--op-with='{ "key":"XXX" }' \
-- --value="XXX"
Name | Type | Description |
---|---|---|
path |
string |
Name | Type | Description |
---|---|---|
input |
object |
Name | Type | Description |
---|---|---|
output |
object |
Given the following configuration:
Operation configuration as op-config.json
:
{
"path": "XXX"
}
$ wick invoke common/object:0.5.0 select [email protected] -- --input="XXX"
Or with inline configuration:
$ wick invoke common/object:0.5.0 select \
--op-with='{ "path":"XXX" }' \
-- --input="XXX"
Name | Type | Description |
---|---|---|
path |
string |
Name | Type | Description |
---|---|---|
input |
object | |
value |
object |
Name | Type | Description |
---|---|---|
output |
object |
Given the following configuration:
Operation configuration as op-config.json
:
{
"path": "XXX"
}
$ wick invoke common/object:0.5.0 push [email protected] -- --input="XXX"--value="XXX"
Or with inline configuration:
$ wick invoke common/object:0.5.0 push \
--op-with='{ "path":"XXX" }' \
-- --input="XXX"--value="XXX"