Enum garden::cli::Command

source ·
pub enum Command {
    Cmd(CmdOptions),
    Completion(CompletionOptions),
    Custom(Vec<String>),
    Eval(EvalOptions),
    Exec(ExecOptions),
    Grow(GrowOptions),
    Init(InitOptions),
    Inspect(InspectOptions),
    List(ListOptions),
    Plant(PlantOptions),
    Prune(PruneOptions),
    Shell(ShellOptions),
}

Variants§

§

Cmd(CmdOptions)

Run custom commands over gardens

§

Completion(CompletionOptions)

Generate shell completions

§

Custom(Vec<String>)

Custom commands

§

Eval(EvalOptions)

Evaluate garden expressions

§

Exec(ExecOptions)

Run commands inside garden environments

§

Grow(GrowOptions)

Grow garden worktrees into existence

§

Init(InitOptions)

Initialize a “garden.yaml” garden configuration file

§

Inspect(InspectOptions)

Query tree status

§

List(ListOptions)

List available gardens, groups, trees and commands

§

Plant(PlantOptions)

Add pre-existing worktrees to a garden configuration file

§

Prune(PruneOptions)

Remove unreferenced Git repositories

§

Shell(ShellOptions)

Open a shell in a garden environment

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
Assign values from ArgMatches to self.
Append to Command so it can instantiate Self. Read more
Append to Command so it can update self. Read more
Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.