pub struct CreateRustGithubRepo { /* private fields */ }
Implementations§
Source§impl CreateRustGithubRepo
impl CreateRustGithubRepo
pub fn name(self, value: impl Into<String>) -> Self
pub fn dir(self, value: impl Into<Option<PathBuf>>) -> Self
pub fn workspace(self, value: impl Into<Option<PathBuf>>) -> Self
pub fn shell_cmd(self, value: impl Into<OsString>) -> Self
pub fn shell_args(self, value: impl Into<Vec<OsString>>) -> Self
pub fn copy_configs_from(self, value: impl Into<Option<PathBuf>>) -> Self
Sourcepub fn configs(self, value: impl Into<Vec<String>>) -> Self
pub fn configs(self, value: impl Into<Vec<String>>) -> Self
Config paths separated by comma (relative to copy_configs_from
) (only applies if copy_configs_from
is specified) (supports files and directories)
pub fn repo_exists_cmd(self, value: impl Into<String>) -> Self
pub fn repo_create_cmd(self, value: impl Into<String>) -> Self
pub fn repo_clone_cmd(self, value: impl Into<String>) -> Self
pub fn project_init_cmd(self, value: impl Into<String>) -> Self
pub fn project_test_cmd(self, value: impl Into<String>) -> Self
pub fn repo_add_cmd(self, value: impl Into<String>) -> Self
pub fn repo_commit_cmd(self, value: impl Into<String>) -> Self
pub fn repo_push_cmd(self, value: impl Into<String>) -> Self
pub fn after_all_cmd(self, value: impl Into<Option<String>>) -> Self
Sourcepub fn support_link_probability(self, value: impl Into<u64>) -> Self
pub fn support_link_probability(self, value: impl Into<u64>) -> Self
The probability of seeing a support link in a single execution of the command is 1 / {{this-field-value}}
.
Set it to 0 to disable the support link.
Trait Implementations§
Source§impl Args for CreateRustGithubRepo
impl Args for CreateRustGithubRepo
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 Debug for CreateRustGithubRepo
impl Debug for CreateRustGithubRepo
Source§impl Default for CreateRustGithubRepo
impl Default for CreateRustGithubRepo
Source§fn default() -> CreateRustGithubRepo
fn default() -> CreateRustGithubRepo
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for CreateRustGithubRepo
impl FromArgMatches for CreateRustGithubRepo
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 CreateRustGithubRepo
impl Parser for CreateRustGithubRepo
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 CreateRustGithubRepo
impl RefUnwindSafe for CreateRustGithubRepo
impl Send for CreateRustGithubRepo
impl Sync for CreateRustGithubRepo
impl Unpin for CreateRustGithubRepo
impl UnwindSafe for CreateRustGithubRepo
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