pub struct Cli { /* private fields */ }
Implementations
sourceimpl Cli
impl Cli
pub fn new()
pub fn rsw_build()
pub fn rsw_watch(
callback: Option<Arc<dyn Fn(&CrateConfig, PathBuf) + Send + Sync + 'static>>
)
pub fn rsw_init()
pub fn rsw_clean()
pub fn rsw_new(name: &String, template: &Option<String>, mode: &Option<String>)
pub fn parse_toml() -> RswConfig
pub fn wp_build(config: Arc<RswConfig>, rsw_type: &str, is_link: bool)
Trait Implementations
sourceimpl FromArgMatches for Cli
impl FromArgMatches for Cli
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
sourcefn 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
.sourceimpl Parser for Cli
impl Parser for Cli
sourcefn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn parse_from<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, exit on error
sourcefn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Parse from iterator, return Err on error.
sourcefn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn update_from<I, T>(&mut self, itr: I)where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, exit on error
sourcefn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
Update from iterator, return Err on error.
sourcefn clap<'help>() -> App<'help>
fn clap<'help>() -> App<'help>
👎Deprecated since 3.0.0:
StructOpt::clap
is replaced with IntoApp::into_app
(derived as part of Parser
)sourcefn from_clap(matches: &ArgMatches) -> Self
fn from_clap(matches: &ArgMatches) -> Self
👎Deprecated since 3.0.0:
StructOpt::from_clap
is replaced with FromArgMatches::from_arg_matches
(derived as part of Parser
)Deprecated,
StructOpt::from_clap
replaced with FromArgMatches::from_arg_matches
(derive as part of
Parser
) Read moresourcefn from_args() -> Self
fn from_args() -> Self
👎Deprecated since 3.0.0:
StructOpt::from_args
is replaced with Parser::parse
(note the change in derives)Deprecated,
StructOpt::from_args
replaced with Parser::parse
(note the change in derives)sourcefn from_args_safe() -> Result<Self, Error>
fn from_args_safe() -> Result<Self, Error>
👎Deprecated since 3.0.0:
StructOpt::from_args_safe
is replaced with Parser::try_parse
(note the change in derives)Deprecated,
StructOpt::from_args_safe
replaced with Parser::try_parse
(note the change in derives)sourcefn from_iter<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn from_iter<I, T>(itr: I) -> Selfwhere
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
👎Deprecated since 3.0.0:
StructOpt::from_iter
is replaced with Parser::parse_from
(note the change in derives)Deprecated,
StructOpt::from_iter
replaced with Parser::parse_from
(note the change in derives)sourcefn from_iter_safe<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
fn from_iter_safe<I, T>(itr: I) -> Result<Self, Error>where
I: IntoIterator<Item = T>,
T: Into<OsString> + Clone,
👎Deprecated since 3.0.0:
StructOpt::from_iter_safe
is replaced with Parser::try_parse_from
(note the change in derives)Deprecated,
StructOpt::from_iter_safe
replaced with Parser::try_parse_from
(note the
change in derives) Read moreAuto Trait Implementations
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnwindSafe for Cli
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more