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
§
component_type: Option<ComponentType>Component type to use (optional, will prompt if not provided)
Transform
Transform an existing project with interactive configuration
Fields
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)
Component
Manage project components (add/remove/list) with consistent component types
Fields
§
component_type: Option<ComponentType>Component type: client, server, ferrisup_common, edge, data-science, embedded
Config
Manage configurations (export/import)
Fields
Workspace
Manage Cargo workspaces
Fields
Dependency(DependencyArgs)
Manage project dependencies
UnusedFeatures
Find unused features in Cargo dependencies
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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 Commands
impl Subcommand for Commands
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 Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnsafeUnpin for Commands
impl UnwindSafe for Commands
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