pub struct ExportCommand {
pub platform: String,
pub selection: ExportSelection,
pub target_repo: PathBuf,
pub dry_run: bool,
pub force: bool,
pub no_skills: bool,
}Expand description
Represents an export command to be executed as a subprocess.
Fields§
§platform: String§selection: ExportSelection§target_repo: PathBuf§dry_run: bool§force: bool§no_skills: boolImplementations§
Source§impl ExportCommand
impl ExportCommand
Sourcepub fn new(
platform: String,
selection: ExportSelection,
target_repo: PathBuf,
) -> Self
pub fn new( platform: String, selection: ExportSelection, target_repo: PathBuf, ) -> Self
Create a new export command with default options (dry_run=true, force=false, no_skills=false).
Sourcepub fn validate(&self) -> Result<(), TuiError>
pub fn validate(&self) -> Result<(), TuiError>
Validate all user-provided arguments. Returns an error if any argument contains shell metacharacters or other forbidden characters.
Sourcepub fn to_args(&self) -> Vec<String>
pub fn to_args(&self) -> Vec<String>
Build the argument array for subprocess invocation.
The command is: node scripts/export-marketplace-agents.mjs <args>
Sourcepub fn display_command(&self) -> String
pub fn display_command(&self) -> String
Render the full command string for display/preview.
Trait Implementations§
Source§impl Clone for ExportCommand
impl Clone for ExportCommand
Source§fn clone(&self) -> ExportCommand
fn clone(&self) -> ExportCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExportCommand
impl RefUnwindSafe for ExportCommand
impl Send for ExportCommand
impl Sync for ExportCommand
impl Unpin for ExportCommand
impl UnsafeUnpin for ExportCommand
impl UnwindSafe for ExportCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more