pub enum EnvCommand {
Status,
Banner {
mode: Option<String>,
width: Option<usize>,
},
Export {
shell: String,
banner: bool,
mode: Option<String>,
bridge: bool,
},
Enter {
shell: String,
mode: Option<String>,
no_banner: bool,
no_bridge: bool,
no_runtime: bool,
wait: u64,
},
Explain {
field: Option<String>,
},
Preflight {
compact: bool,
full: bool,
},
}Expand description
The subcommands of majordomus env.
Variants§
Status
The whole snapshot, resolved in full: what the layer holds is counted, and the cache the banner reads is written
Banner
Render the snapshot for a terminal. Goes to standard error, never standard output, because direnv reads standard output as the environment it is setting
Fields
Export
The variable assignments a shell in this repository benefits from, for eval. Assignments only: no command, no side effect
Fields
Also draw the banner, to standard error, from the same snapshot. What an adapter asks for: one process on the path a shell takes on every entry, rather than two that each pay for a git status
Enter
Enter the repository: the assignments a shell here benefits from on standard output, the banner on standard error, the workflow bridge refreshed when a declaration behind it moved, and the runtime ensured — the whole of what entering this repository is, as one call, so that no person and no agent has to remember a sequence. Never builds, never reaches a remote network, and never waits for a server it started to answer
Fields
Do not draw the banner
Explain
Where each value came from: the file, command or constant that decided it, the resolver that read it, and how far it can be trusted
Fields
Preflight
Whether Majordomus is in force in this checkout, claim by claim, with the evidence behind each verdict: git, the episode and its briefing, the task and handover, the policy, rules and ADRs, the shared server and the surfaces it serves, the peer board, recorded test runs, rule enforcement, provider projections and the deployment. A verdict that asserts something is in force always names its evidence. Resolves fast, from the rule tally a --full run cached; the HTTP route /api/v1/environment/preflight and the MCP tool majordomus_preflight answer the same value
Trait Implementations§
Source§impl Debug for EnvCommand
impl Debug for EnvCommand
Source§impl FromArgMatches for EnvCommand
impl FromArgMatches for EnvCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for EnvCommand
impl Subcommand for EnvCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand