[−][src]Struct gitweb::options::Opt
Fields
branch: Option<String>
Set the branch (alias for --tag)
By setting the branch, you can override the default behavior that will set the branch to the current one in the repository. If something went wrong with the current one, it will set the value to master.
tag: Option<String>
Set the tag (alias for --branch).
By setting the tag, you can override the default behavior that will set the branch to the current one in the repository and will instead take the reference tag (or branch) given as parameter.
commit: Option<String>
Set a commit
By setting a commit, you can override the default behavior that will set the branch to the current one in the repository.
browser: Option<String>
Set the browser
If you set the browser option, it will override the other configuration. Here is the list by order of overrides: the --browser option given in the command line, then the environment variable $BROWSER on Linux or %BROWSER% on Windows (this is a non standard variable), then the default web browser on the system If you give an empty string to browser option, the program will only print the remote URL into the stdout.
remote: Option<String>
Set the remote
By default, the selected remote will be origin by convention. You can override this setting by using this option.
verbose: bool
Set the verbosity of the command
By settings this option, you will have more feedback on the output.
Trait Implementations
impl Debug for Opt
[src]
impl StructOpt for Opt
[src]
fn clap<'a, 'b>() -> App<'a, 'b>
[src]
fn from_clap(matches: &ArgMatches<'_>) -> Self
[src]
fn from_args() -> Self
[src]
fn from_args_safe() -> Result<Self, Error>
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
impl StructOptInternal for Opt
[src]
fn augment_clap<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b>
[src]
fn is_subcommand() -> bool
[src]
fn from_subcommand(_sub: (&'b str, Option<&'b ArgMatches<'a>>)) -> Option<Self>
[src]
Auto Trait Implementations
impl RefUnwindSafe for Opt
impl Send for Opt
impl Sync for Opt
impl Unpin for Opt
impl UnwindSafe for Opt
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,