pub(crate) struct NodeOptions {
pub(crate) state: PathBuf,
pub(crate) port: u16,
pub(crate) create: Vec<String>,
pub(crate) extra: Vec<String>,
}Expand description
The node URL configured for this directory, if any.
Walks up from the working directory looking for .choir/config, the
way git finds a repository. A file rather than an environment
variable on purpose: this workspace takes configuration from flags
and files, and the handful of environment reads that exist are
deliberately not configuration.
Walking up rather than reading one fixed path means a checkout can
name the node it belongs to, which is the same thing a git remote
does and needs no explaining to anybody who has used one.
What choir node serve and choir node install were told, after
defaults.
One parser for both because they describe the same node: a supervised node and a hand-started one must be the same command with the same arguments, and two parsers is how they stop being.
Fields§
§state: PathBuf§port: u16§create: Vec<String>§extra: Vec<String>