pub enum WorkspaceCommand {
Checkout {
project: String,
target: PathBuf,
decode_scripts: bool,
},
Status {
path: PathBuf,
},
Push {
path: PathBuf,
delete: bool,
},
}Variants§
Checkout
Check out a project’s resources to a local tree — mapped
paths + the recorded .ign-workspace.json manifest + an
idempotent .gitignore (manifest committed; codec artifacts
ignored). Read-only on the wire: one export GET, zero imports.
Fields
Status
Report workspace drift against the gateway — states are PUSH-RELATIVE (each row names what push would do: write / leave / refuse); the project comes from the workspace manifest, never re-typed. Read-only: one export GET.
Push
Push local edits to the gateway — guarded (refused without –yes; the refusal message IS the blast-radius preview); conflicts refuse EVEN WITH –yes (manual reconciliation); deletions need –delete (default: reported, skipped); untracked files are never imported; an empty selection writes nothing.
Trait Implementations§
Source§impl Debug for WorkspaceCommand
impl Debug for WorkspaceCommand
Source§impl FromArgMatches for WorkspaceCommand
impl FromArgMatches for WorkspaceCommand
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>
Assign values from
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>
Assign values from
ArgMatches to self.Source§impl Subcommand for WorkspaceCommand
impl Subcommand for WorkspaceCommand
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
Append to
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
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Forget for WorkspaceCommand
impl Freeze for WorkspaceCommand
impl Move for WorkspaceCommand
impl RefUnwindSafe for WorkspaceCommand
impl Send for WorkspaceCommand
impl Sync for WorkspaceCommand
impl Unpin for WorkspaceCommand
impl UnsafeUnpin for WorkspaceCommand
impl UnwindSafe for WorkspaceCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more