pub struct InitArgs {
pub path: PathBuf,
pub provider: Option<String>,
pub model: Option<String>,
pub endpoint: Option<String>,
pub hooks: HookKind,
pub force: bool,
pub no_gitignore: bool,
pub non_interactive: bool,
pub interactive: bool,
}Fields§
§path: PathBufRepository to install into.
provider: Option<String>Which model provider to configure. Omit it for the interactive wizard.
model: Option<String>Model name. Defaults to the preset’s.
endpoint: Option<String>Base URL. Required for --provider custom.
hooks: HookKindWhich git hooks to install.
force: boolOverwrite an existing drep.toml or a drep-managed hook.
no_gitignore: boolLeave .gitignore alone.
By default drep init adds drep.toml to it. The file holds no
secrets, so this decides whether your provider choice is shared with
the repository.
non_interactive: boolNever prompt, even on a terminal. For scripts and CI.
interactive: boolAlways prompt, even when stdin is not a terminal. For a wrapper feeding answers on stdin.
Trait Implementations§
Source§impl Args for InitArgs
impl Args for InitArgs
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 FromArgMatches for InitArgs
impl FromArgMatches for InitArgs
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.Auto Trait Implementations§
impl Freeze for InitArgs
impl RefUnwindSafe for InitArgs
impl Send for InitArgs
impl Sync for InitArgs
impl Unpin for InitArgs
impl UnsafeUnpin for InitArgs
impl UnwindSafe for InitArgs
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