Skip to main content

Commands

Enum Commands 

Source
pub enum Commands {
    New {
        name: Option<String>,
        component_type: Option<ComponentType>,
        framework: Option<String>,
        provider: Option<String>,
        application_type: Option<String>,
        project_type: Option<String>,
        git: bool,
        build: bool,
        no_interactive: bool,
    },
    Transform {
        project: Option<String>,
        template: Option<String>,
    },
    List,
    Preview {
        component_type: Option<ComponentType>,
        framework: Option<String>,
        provider: Option<String>,
        application_type: Option<String>,
    },
    Component {
        action: Option<String>,
        component_type: Option<ComponentType>,
        project: Option<String>,
    },
    Config {
        export: bool,
        import: Option<String>,
        path: Option<String>,
    },
    Workspace {
        action: Option<String>,
        path: Option<String>,
    },
    Dependency(DependencyArgs),
    UnusedFeatures {
        path: Option<String>,
    },
}

Variants§

§

New

Create a new Rust project with interactive configuration

Fields

§name: Option<String>

Component name (optional, will prompt if not provided)

§component_type: Option<ComponentType>

Component type to use (optional, will prompt if not provided)

§framework: Option<String>

Framework to use for client, server, or embedded components

§provider: Option<String>

Cloud provider for serverless components

§application_type: Option<String>

Application type for edge components

§project_type: Option<String>

Project type for framework-specific options (e.g., desktop, web, mobile for Dioxus)

§git: bool

Initialize a git repository

§build: bool

Run cargo build after project creation

§no_interactive: bool

Skip interactive prompts (for automated testing)

§

Transform

Transform an existing project with interactive configuration

Fields

§project: Option<String>

Path to the project to transform (optional, will prompt if not provided)

§template: Option<String>

Template to transform to (optional, will prompt if not provided)

§

List

List available component types

§

Preview

Preview a component type without creating files

NOTE: This command is a work in progress and has several limitations:

  • Not all template variables are properly replaced
  • Some framework-specific features may not be accurately displayed
  • File previews may not reflect actual generated content
  • Limited support for complex template combinations

Fields

§component_type: Option<ComponentType>

Component type to preview (optional, will prompt if not provided)

§framework: Option<String>

Framework to use for client, server, or embedded components

§provider: Option<String>

Cloud provider for serverless components

§application_type: Option<String>

Application type for edge components

§

Component

Manage project components (add/remove/list) with consistent component types

Fields

§action: Option<String>

Action to perform: add, remove, or list

§component_type: Option<ComponentType>

Component type: client, server, ferrisup_common, edge, data-science, embedded

§project: Option<String>

Path to the project (optional, will use current directory if not provided)

§

Config

Manage configurations (export/import)

Fields

§export: bool

Export the current configuration to a file

§import: Option<String>

Import a configuration from a file

§path: Option<String>

Path to export/import configuration (optional)

§

Workspace

Manage Cargo workspaces

Fields

§action: Option<String>

Action to perform: init, add, remove, list, or optimize

§path: Option<String>

Path to the workspace (optional, will use current directory if not provided)

§

Dependency(DependencyArgs)

Manage project dependencies

§

UnusedFeatures

Find unused features in Cargo dependencies

Fields

§path: Option<String>

Path to the project (optional, will use current directory if not provided)

Trait Implementations§

Source§

impl FromArgMatches for Commands

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 Subcommand for Commands

Source§

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

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

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 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 T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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, U> Into<U> for T
where 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.

Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.