Felix Fietkau
f6a9cce09a
cli: fix spurious error when exiting the cli
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2025-03-09 10:52:07 +01:00
Felix Fietkau
7f0913d7b1
cli: improve error handling on editor select call
...
Use common error functions instead of explicit warn() calls
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2025-03-09 10:52:07 +01:00
Felix Fietkau
7953376400
cli: use model scope for hook calls
...
Make the scope consistent with other callbacks
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2025-02-28 17:36:01 +01:00
Felix Fietkau
bc078b833a
cli: add support for create/destroy object editor with single type
...
Allows hooking create/destroy in a separate menu without having the user
specify a type argument.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2025-02-28 17:36:01 +01:00
Felix Fietkau
895b4e7caf
cli: add support for partial completion with separator character
...
Useful for completing long lists of possible values with common prefix
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2025-02-28 17:36:01 +01:00
Felix Fietkau
248b66b44f
cli: add OpenWrt CLI
...
This provides an easy to use modular CLI that can be used to interact with
OpenWrt services. It has full support for context sensitive tab completion
and help.
Extra modules can be provided by packages and can extend the existing node
structure in any place.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2025-02-13 19:00:30 +01:00