pub enum PipelineSubCommand {
    New {
        name: String,
        workdir: Option<PathBuf>,
    },
    Update {
        name: Option<String>,
        rename: Option<String>,
        workdir: Option<PathBuf>,
        set_default: bool,
    },
    Delete {
        name: String,
    },
    Run {
        name: Option<String>,
    },
    List,
    Dag {
        name: Option<String>,
        file: Option<PathBuf>,
        format: XvcPipelineDagFormat,
    },
    Export {
        name: Option<String>,
        file: Option<PathBuf>,
        format: Option<XvcSchemaSerializationFormat>,
    },
    Import {
        name: Option<String>,
        file: Option<PathBuf>,
        format: Option<XvcSchemaSerializationFormat>,
        overwrite: bool,
    },
    Step(StepCLI),
}
Expand description

Pipeline management subcommands

Variants§

§

New

Fields

§name: String

Name of the pipeline this command applies to

§workdir: Option<PathBuf>

Default working directory

Create a new pipeline

§

Update

Fields

§name: Option<String>

Name of the pipeline this command applies to

§rename: Option<String>

Rename the pipeline to

§workdir: Option<PathBuf>

Set the working directory

§set_default: bool

Set this pipeline as default

Rename, change dir or set a pipeline as default

§

Delete

Fields

§name: String

Name or GUID of the pipeline to be deleted

Delete a pipeline

§

Run

Fields

§name: Option<String>

Name of the pipeline to run

Run a pipeline

§

List

List all pipelines

§

Dag

Fields

§name: Option<String>

Name of the pipeline to generate the diagram

§file: Option<PathBuf>

Output file. Writes to stdout if not set.

§format: XvcPipelineDagFormat

Format for graph. Either dot or mermaid.

Generate a dot or mermaid diagram for the pipeline

§

Export

Fields

§name: Option<String>

Name of the pipeline to export

§file: Option<PathBuf>

File to write the pipeline. Writes to stdout if not set.

§format: Option<XvcSchemaSerializationFormat>

Output format. One of json or yaml. If not set, the format is guessed from the file extension. If the file extension is not set, json is used as default.

Export the pipeline to a YAML or JSON file to edit

§

Import

Fields

§name: Option<String>

Name of the pipeline to import. If not set, the name from the file is used.

§file: Option<PathBuf>

File to read the pipeline. Use stdin if not specified.

§format: Option<XvcSchemaSerializationFormat>

Input format. One of json or yaml. If not set, the format is guessed from the file extension. If the file extension is not set, json is used as default.

§overwrite: bool

Overwrite the pipeline even if the name already exists

Import the pipeline from a file

§

Step(StepCLI)

Step creation, dependency, output commands

Trait Implementations§

source§

impl Clone for PipelineSubCommand

source§

fn clone(&self) -> PipelineSubCommand

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl CommandFactory for PipelineSubCommand

source§

fn command<'b>() -> Command

Build a [Command] that can instantiate Self. Read more
source§

fn command_for_update<'b>() -> Command

Build a [Command] that can update self. Read more
source§

impl Debug for PipelineSubCommand

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromArgMatches for PipelineSubCommand

source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
source§

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>

Assign values from ArgMatches to self.
source§

impl Parser for PipelineSubCommand

§

fn parse() -> Self

Parse from std::env::args_os(), exit on error
§

fn try_parse() -> Result<Self, Error<RichFormatter>>

Parse from std::env::args_os(), return Err on error.
§

fn parse_from<I, T>(itr: I) -> Selfwhere I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, exit on error
§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
§

fn update_from<I, T>(&mut self, itr: I)where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, exit on error
§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error<RichFormatter>>where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, return Err on error.
source§

impl Subcommand for PipelineSubCommand

source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self. Read more
source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can update self. Read more
source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more