GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||
GeezerVison is showing developing-today.github.io — id-native-shell - id id-native-shellSource: https://github.com/developing-today/code/blob/main/pkgs/id/crates/id-native-shell/src/main.rs
For the terminal equivalent of the same connection, see World commands: joining and playing; for the browser equivalent, see The web UI: pages and HTTP API. UsageThe usage string, verbatim:
Arguments
The pairing rule
There is no way to connect with a node ID and no capability, and no way to supply a capability without naming its node, from this command line. EnvironmentOne environment variable is read by this binary:
There is no
|
| Outcome | Exit status |
|---|---|
Argument error (unknown flag, --help, --version, unpaired --node/--capability) | 2, usage text on stderr |
| Session-start failure | 2, error on stderr |
| Clean window close | 0 |
id-native-shell is the only binary in the workspace with a hand-coded exit code. The id binary exits 1 on handler errors and 2 only on clap parse errors; here both argument errors and session-start failures exit 2.
With no target — no --node/--capability pair — the window still opens. It opens on an empty view and announces that it is not connected. Nothing is rendered from any world until a connected invocation supplies a node and a capability.
Toy data: a node whose ID is written here as NODE_ID, a guest capability written as CAP, and a world named lobby.
Connected, direct address, no relay:
$ id-native-shell --node NODE_ID --capability CAP --world lobby --addr 192.0.2.10:11204 --no-relay
Connected, discovery left to defaults:
$ id-native-shell --node NODE_ID --capability CAP
Unconnected (empty view):
$ id-native-shell
Failures:
$ id-native-shell --node NODE_ID
usage: id-native-shell [--node <node-id> --capability <cap>] [--world <name>] [--addr <ip:port>]... [--no-relay]
$ echo $?
2
$ id-native-shell --help
usage: id-native-shell [--node <node-id> --capability <cap>] [--world <name>] [--addr <ip:port>]... [--no-relay]
$ echo $?
2
The first failure is the pairing rule: --capability is missing. The second is the absence of a help flag: --help is an unknown flag to this parser.