pub struct SetupArgs {
pub action: Option<SetupAction>,
pub target: Option<Utf8PathBuf>,
pub repo: Option<String>,
pub forge: Option<String>,
pub required_check: Option<String>,
pub apply: bool,
pub list: bool,
pub json: bool,
}Expand description
Execute the repository-side setup against the detected forge.
Without a subcommand: preview every step, or run them in order under
--apply; --list prints the ordered steps and what each proves.
Fields§
§action: Option<SetupAction>The read-only companions: check, one step, one script.
target: Option<Utf8PathBuf>The repository to set up.
repo: Option<String>Override the detected project path (owner/name).
forge: Option<String>Override the detected forge: github or gitlab.
required_check: Option<String>The check the gate must pass; required on github, refused on gitlab.
apply: boolRun the steps; without it every step is previewed and nothing runs.
list: boolList the ordered steps and what each proves, and run nothing.
json: boolEmit NDJSON events on stdout instead of the human report.
Trait Implementations§
Source§impl Args for SetupArgs
impl Args for SetupArgs
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 SetupArgs
impl FromArgMatches for SetupArgs
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 SetupArgs
impl RefUnwindSafe for SetupArgs
impl Send for SetupArgs
impl Sync for SetupArgs
impl Unpin for SetupArgs
impl UnsafeUnpin for SetupArgs
impl UnwindSafe for SetupArgs
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