Struct CreateRustGithubRepo

Source
pub struct CreateRustGithubRepo { /* private fields */ }

Implementations§

Source§

impl CreateRustGithubRepo

Source

pub fn name(self, value: impl Into<String>) -> Self

Source

pub fn dir(self, value: impl Into<Option<PathBuf>>) -> Self

Source

pub fn workspace(self, value: impl Into<Option<PathBuf>>) -> Self

Source

pub fn shell_cmd(self, value: impl Into<OsString>) -> Self

Source

pub fn shell_args(self, value: impl Into<Vec<OsString>>) -> Self

Source

pub fn copy_configs_from(self, value: impl Into<Option<PathBuf>>) -> Self

Source

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)

Source

pub fn repo_exists_cmd(self, value: impl Into<String>) -> Self

Source

pub fn repo_create_cmd(self, value: impl Into<String>) -> Self

Source

pub fn repo_clone_cmd(self, value: impl Into<String>) -> Self

Source

pub fn project_init_cmd(self, value: impl Into<String>) -> Self

Source

pub fn project_test_cmd(self, value: impl Into<String>) -> Self

Source

pub fn repo_add_cmd(self, value: impl Into<String>) -> Self

Source

pub fn repo_commit_cmd(self, value: impl Into<String>) -> Self

Source

pub fn repo_push_cmd(self, value: impl Into<String>) -> Self

Source

pub fn after_all_cmd(self, value: impl Into<Option<String>>) -> 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.

Source

pub fn dry_run(self, value: impl Into<bool>) -> Self

Don’t actually execute commands that modify the data, only print them (note that read-only commands will still be executed)

Source§

impl CreateRustGithubRepo

Source

pub async fn run( self, stdout: &mut impl Write, stderr: &mut impl Write, now: Option<u64>, ) -> Result<()>

Trait Implementations§

Source§

impl Args for CreateRustGithubRepo

Source§

fn group_id() -> Option<Id>

Report the ArgGroup::id for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

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 more
Source§

impl CommandFactory for CreateRustGithubRepo

Source§

fn command<'b>() -> Command

Build a Command that can instantiate Self. Read more
Source§

fn command_for_update<'b>() -> Command

Build a Command that can update self. Read more
Source§

impl Debug for CreateRustGithubRepo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CreateRustGithubRepo

Source§

fn default() -> CreateRustGithubRepo

Returns the “default value” for a type. Read more
Source§

impl FromArgMatches for CreateRustGithubRepo

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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>

Assign values from ArgMatches to self.
Source§

impl Parser for CreateRustGithubRepo

Source§

fn parse() -> Self

Parse from std::env::args_os(), exit on error.
Source§

fn try_parse() -> Result<Self, Error>

Parse from std::env::args_os(), return Err on error.
Source§

fn parse_from<I, T>(itr: I) -> Self
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, exit on error.
Source§

fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Parse from iterator, return Err on error.
Source§

fn update_from<I, T>(&mut self, itr: I)
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, exit on error. Read more
Source§

fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,

Update from iterator, return Err on error.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.