pub enum Commands {
New(NewArgs),
Doctor(DoctorArgs),
Generate(GenerateArgs),
Backend(BackendArgs),
Add(AddArgs),
Init(InitArgs),
Resource(ResourceArgs),
Setup(SetupArgs),
Dev(DevArgs),
Migrate(MigrateArgs),
Templates,
}Variants§
New(NewArgs)
Primary: create a new Tideway starter app (use for greenfield projects)
Doctor(DoctorArgs)
Primary: diagnose feature and project setup issues
Generate(GenerateArgs)
Advanced: generate frontend components (not for backend API scaffolding)
Backend(BackendArgs)
Advanced: generate backend scaffolding for existing/nonstandard projects (not for greenfield)
Add(AddArgs)
Advanced: add features/scaffolding to an existing project (not the default new-app path)
Init(InitArgs)
Advanced: initialize main.rs by scanning modules in existing projects (not for greenfield)
Resource(ResourceArgs)
Primary: generate a CRUD resource module
Setup(SetupArgs)
Advanced: set up frontend dependencies (not required for API-only workflows)
Dev(DevArgs)
Primary: run a Tideway app in dev mode (loads env, optional migrations)
Migrate(MigrateArgs)
Primary: run database migrations
Templates
List available templates
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 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