ockam
ockam copied to clipboard
feat(rust): add `--config` argument to `node create` command
It loads a json file containing a list of commands that will be executed after creating a node. To generate this json file, the user can use the global --export, --export-as, and --depends-on arguments on any command, that will copy the command input to the desired file.
How to test
ockam node list --export commands.json
ockam node create blue --config commands.json
Other options to export commands to a json file
# Will generate random name for the command
$ ockam node list --export commands.json
# Set name for command
$ ockam node list --export commands.json --export-as node-list
# Depend on other command
$ ockam node list --export commands.json --depends-on node-create
Structure of the config file
{
"node-list": {
"args": [
"node",
"list"
],
"depends_on": null
}
}
@mergifyio rebase
rebase
✅ Branch has been successfully rebased
@mergifyio rebase
rebase