fix(cli): reject misplaced gateway instance selectors (#6229)
* fix(cli): inherit gateway instance selectors in subcommands * fix(cli): reject misplaced gateway instance selectors * test(cli): strip ANSI styling from gateway usage assertions
This commit is contained in:
1 parent
9d2762a4f1
commit
31b193236f
3 files changed
+85
-3
No files matched your search
@@ -174,7 +174,7 @@ First-run WebUI setup binds to `127.0.0.1` by default. Use manual configuration
|
||||
| `nanobot gateway install-service --dry-run` | Preview the generated service file and system commands |
|
||||
| `nanobot gateway uninstall-service` | Remove the installed system service |
|
||||
|
||||
For custom instances, pass the same selector flags to management commands:
|
||||
For custom instances, pass the same selector flags after the management subcommand, as shown below. `--config` and `--workspace` before a management subcommand are rejected with a usage error; they are not inherited.
|
||||
|
||||
```bash
|
||||
nanobot gateway --background --config ./bot-a/config.json --workspace ./bot-a/workspace
|
||||
|
||||
Reference in new issue
Block a user