CLI pipe save function

This commit is contained in:
Olof hagsand 2024-04-09 15:17:06 +02:00
parent f9faf1039a
commit e55e05353f
6 changed files with 118 additions and 5 deletions

View file

@ -111,6 +111,17 @@ cli> show configuration
<value>42</value>
</parameter>
</table>
cli> show configuration | show json
{
"clixon-example:table": {
"parameter": [
{
"name": "a",
"value": "42"
}
]
}
}
cli> delete interfaces interface eth1table parameter a
cli> commit
```

View file

@ -43,5 +43,5 @@ CLICON_MODE="|example_pipe"; # Must start with |
json("JSON"), pipe_showas_fn("json");
text("Text curly braces"), pipe_showas_fn("text");
}
# save("Save configuration to file") <filename:string>("Filename (local filename)"), save_config_file("candidate","filename", "xml"); # XXX
save("Save configuration to file") <filename:string>("Filename (local filename)"), pipe_save_file("filename");
}