Struct git_cliff::args::Opt

source ·
pub struct Opt {
Show 20 fields pub verbose: u8, pub config: PathBuf, pub workdir: Option<PathBuf>, pub repository: Option<PathBuf>, pub include_path: Option<Vec<Pattern>>, pub exclude_path: Option<Vec<Pattern>>, pub with_commit: Option<Vec<String>>, pub prepend: Option<PathBuf>, pub output: Option<PathBuf>, pub tag: Option<String>, pub body: Option<String>, pub init: bool, pub latest: bool, pub current: bool, pub unreleased: bool, pub topo_order: bool, pub context: bool, pub strip: Option<Strip>, pub sort: Sort, pub range: Option<String>,
}
Expand description

Command-line arguments to parse.

Fields§

§verbose: u8

Increases the logging verbosity.

§config: PathBuf

Sets the configuration file.

§workdir: Option<PathBuf>

Sets the working directory.

§repository: Option<PathBuf>

Sets the git repository.

§include_path: Option<Vec<Pattern>>

Sets the path to include related commits.

§exclude_path: Option<Vec<Pattern>>

Sets the path to exclude related commits.

§with_commit: Option<Vec<String>>

Sets custom commit messages to include in the changelog.

§prepend: Option<PathBuf>

Prepends entries to the given changelog file.

§output: Option<PathBuf>

Writes output to the given file.

§tag: Option<String>

Sets the tag for the latest version.

§body: Option<String>

Sets the template for the changelog body.

§init: bool

Writes the default configuration file to cliff.toml

§latest: bool

Processes the commits starting from the latest tag.

§current: bool

Processes the commits that belong to the current tag.

§unreleased: bool

Processes the commits that do not belong to a tag.

§topo_order: bool

Sorts the tags topologically.

§context: bool

Prints changelog context as JSON.

§strip: Option<Strip>

Strips the given parts from the changelog.

§sort: Sort

Sets sorting of the commits inside sections.

§range: Option<String>

Sets the commit range to process.

Trait Implementations§

Append to Command so it can instantiate Self. Read more
Append to Command so it can update self. Read more
Deprecated, replaced with CommandFactory::command
Deprecated, replaced with CommandFactory::command_for_update
Build a Command that can instantiate Self. Read more
Build a Command that can update self. Read more
Formats the value using the given formatter. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Assign values from ArgMatches to self.
Assign values from ArgMatches to self.
Parse from std::env::args_os(), exit on error
Parse from std::env::args_os(), return Err on error.
Parse from iterator, exit on error
Parse from iterator, return Err on error.
Update from iterator, exit on error
Update from iterator, return Err on error.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.