Expand description
Shared CLI types and helpers.
Structs§
- Common
Chain Args - Blockchain coordinates + keys shared by every on-chain command, flattened
into each command’s args so they expose an identical flag group and can’t
drift. Each field is taken from a flag when present, otherwise the
[blockchain]/[identity]tables of the TOML config (the same file the daemon reads).ChainArgs/PublishChainArgslayer their contract-address flags on top of this; the shared resolver (chain_ctx::resolve_common) reads these fields so the flag > config > default precedence lives in one place.
Enums§
- Config
Path Source - Whether a TOML config path was chosen by the operator or
defaulted. Drives the “missing file” policy for config-file
lookups in the
decdn node *subcommands: an explicit path that isn’t there is almost certainly a typo and should error, while a default path that isn’t there is normal (operator just hasn’t made a config yet). - LogFormat
- Log output format.
- LogLevel
- Log verbosity level.
Functions§
- default_
client_ data_ dir - Returns the client-scoped default data directory (
~/.decdn/client). - default_
config_ path - Returns the default config file path (
~/.decdn/node.toml). - default_
data_ dir - Returns the platform-appropriate default data directory (
~/.decdn). - expand_
tilde - Expands a leading
~/or bare~in a path to the user’s home directory.