pub struct CmdArgs {
pub config: Option<Vec<PathBuf>>,
pub input: Vec<PathBuf>,
pub workspace: Vec<PathBuf>,
pub exclude_pattern: Option<Vec<String>>,
pub include_pattern: Option<Vec<String>>,
pub output_format: Format,
pub format: Option<Format>,
pub output: OutputDestination,
pub override_template: Option<PathBuf>,
pub site_name: Option<String>,
pub mixin: Option<PathBuf>,
pub verbose: bool,
}Fields§
§config: Option<Vec<PathBuf>>Configuration file paths. If not provided, both “.emmyrc.json” and “.luarc.json” will be searched in the workspace directory
input: Vec<PathBuf>Deprecated, use [WORKSPACE] instead
workspace: Vec<PathBuf>Path to the workspace directory
exclude_pattern: Option<Vec<String>>Comma separated list of exclude patterns Patterns must follow glob syntax Exclude patterns take precedence over include patterns
include_pattern: Option<Vec<String>>Comma separated list of include patterns Patterns must follow glob syntax
output_format: FormatSpecify output format
format: Option<Format>Deprecated, use –output-format instead
output: OutputDestinationSpecify output destination (can be stdout when output_format is json)
override_template: Option<PathBuf>The path of the override template
site_name: Option<String>§mixin: Option<PathBuf>A directory whose contents are merged with the generated Markdown files. For example, to override docs/index.md, create a folder called “docs” in your mixin folder and create a file called “index.md” inside it.
verbose: boolVerbose output
Trait Implementations§
Source§impl Args for CmdArgs
impl Args for CmdArgs
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for CmdArgs
impl CommandFactory for CmdArgs
Source§impl FromArgMatches for CmdArgs
impl FromArgMatches for CmdArgs
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>
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>
ArgMatches to self.Source§impl Parser for CmdArgs
impl Parser for CmdArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for CmdArgs
impl RefUnwindSafe for CmdArgs
impl Send for CmdArgs
impl Sync for CmdArgs
impl Unpin for CmdArgs
impl UnwindSafe for CmdArgs
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more