pub struct NewArgs {
pub name: Option<String>,
pub preset: Option<NewPreset>,
pub features: Vec<String>,
pub with_config: bool,
pub with_docker: bool,
pub with_ci: bool,
pub no_prompt: bool,
pub summary: bool,
pub with_env: bool,
pub path: Option<String>,
pub force: bool,
}Fields§
§name: Option<String>Project name (used for Cargo.toml)
preset: Option<NewPreset>Preset to apply (preselect features and scaffolding)
features: Vec<String>Tideway features to enable (comma-separated)
with_config: boolGenerate config.rs and error.rs starter files
with_docker: boolGenerate docker-compose.yml for local Postgres
with_ci: boolGenerate GitHub Actions CI workflow
no_prompt: boolSkip interactive prompts (use flags instead)
summary: boolPrint a summary of generated files
with_env: boolAlways generate .env.example
path: Option<String>Output directory (defaults to the project name)
force: boolOverwrite existing files without prompting
Trait Implementations§
Source§impl Args for NewArgs
impl Args for NewArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for NewArgs
impl CommandFactory for NewArgs
Source§impl FromArgMatches for NewArgs
impl FromArgMatches for NewArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for NewArgs
impl Parser for NewArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for NewArgs
impl RefUnwindSafe for NewArgs
impl Send for NewArgs
impl Sync for NewArgs
impl Unpin for NewArgs
impl UnwindSafe for NewArgs
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