pub enum ProjectCmd {
Switch {
name: String,
user: bool,
session_id: Option<String>,
project_attribution: String,
},
Status {
session_id: Option<String>,
project: Option<String>,
},
}Expand description
Sub-actions for tracevault project (project-attribution axis).
Variants§
Switch
Bind project attribution to a registered project for the current
session (or, with --user, the session-independent user default).
Fields
user: boolWrite a session-independent user-level default instead of a session binding. Implied when no session id is available. Also skips the current-codebase containment check (a user default isn’t tied to any one checkout).
project_attribution: StringWho owns attribution. explicit stamps the named project
without a repo/project membership check and marks the session
forced — so it also binds a project this checkout is not a member
of, which an ordinary switch refuses; it says so when it does.
switch itself checks nothing: the requirement — a Control Plane
identity (never a tvk_ API key) and Operator on the project —
is enforced at INGEST, which refuses the force with a 403 and
queues the event rather than re-attributing it. A persisted force
lapses after ~one working day.
Status
Show the project the current session is attributed to.
Fields
Trait Implementations§
Source§impl FromArgMatches for ProjectCmd
impl FromArgMatches for ProjectCmd
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 ProjectCmd
impl Subcommand for ProjectCmd
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