Skip to main content

ProfileFlags

Struct ProfileFlags 

Source
pub struct ProfileFlags {
    pub technology: Vec<String>,
    pub forge: Option<String>,
    pub repo: Option<String>,
    pub release_mode: Option<String>,
    pub release_driver: Option<String>,
    pub release_style: Option<String>,
    pub trunk: Option<String>,
    pub checkout_mode: Option<String>,
    pub integration: Option<String>,
}
Expand description

The profile and Git workflow answers an invocation states.

Fields§

§technology: Vec<String>

A technology present in the project; repeat it for several. A supplied list replaces the configured one whole. Defaults to detection from the version files.

§forge: Option<String>

The forge hosting the project: github or gitlab. Defaults to detection from the target’s git remote; a project with no forge resolves to none.

§repo: Option<String>

The project path on the forge, substituted into the rendered files and recorded as the landing parameter. Defaults to detection from the target’s git remote.

§release_mode: Option<String>

The release intent: automatic, where release-kit drives the release; external, where the project releases through a process release-kit does not drive; or none. Defaults to the observation’s proposal: automatic with the one release-bearing technology, none where there is none.

§release_driver: Option<String>

The technology that states the version and takes the bot, for an automatic release. Required where more than one release-bearing technology is present.

§release_style: Option<String>

The release style of an automatic release: trunk (the bot’s request carries auto-merge from creation) or lines (every request waits for a human’s merge).

§trunk: Option<String>

The one permanent branch. Defaults to the configuration, the record, and then master.

§checkout_mode: Option<String>

Where a topic branch opens: linked-worktree (every code-changing branch in its own linked worktree, the main checkout commits nothing) or main-worktree (the original working tree switches to it). Recorded as a Git workflow parameter and rendered into the landed blocks.

§integration: Option<String>

Which authority moves an implementation onto the trunk: local (the checkout squashes and records it, through rk integrate) or forge (a pull request or merge request does, behind its required check). Recorded as a Git workflow parameter and rendered into the landed blocks. Defaults to local.

Implementations§

Source§

impl ProfileFlags

Source

pub fn inputs(&self) -> Result<Inputs<'_>, RkError>

The parsed answers, as the resolution takes them.

§Errors

Returns crate::error::RkError::Usage for a value outside its vocabulary.

Trait Implementations§

Source§

impl Args for ProfileFlags

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 Clone for ProfileFlags

Source§

fn clone(&self) -> ProfileFlags

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ProfileFlags

Source§

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

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

impl Default for ProfileFlags

Source§

fn default() -> ProfileFlags

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

impl FromArgMatches for ProfileFlags

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.

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.