Struct librojo::cli::InitCommand [−][src]
Expand description
Initializes a new Rojo project.
Fields
path: PathBufExpand description
Path to the place to create the project. Defaults to the current directory.
kind: InitKindExpand description
The kind of project to create, ‘place’ or ‘model’. Defaults to place.
Implementations
impl InitCommand[src]
impl InitCommand[src]pub fn absolute_path(&self) -> Cow<'_, Path>[src]
Trait Implementations
impl Debug for InitCommand[src]
impl Debug for InitCommand[src]impl StructOpt for InitCommand[src]
impl StructOpt for InitCommand[src]fn from_clap(matches: &ArgMatches<'_>) -> Self[src]
fn from_clap(matches: &ArgMatches<'_>) -> Self[src]Builds the struct from clap::ArgMatches. It’s guaranteed to succeed
if matches originates from an App generated by StructOpt::clap called on
the same type, otherwise it must panic. Read more
fn from_args() -> Self[src]
fn from_args() -> Self[src]Builds the struct from the command line arguments (std::env::args_os).
Calls clap::Error::exit on failure, printing the error message and aborting the program. Read more
fn from_args_safe() -> Result<Self, Error>[src]
fn from_args_safe() -> Result<Self, Error>[src]Builds the struct from the command line arguments (std::env::args_os).
Unlike StructOpt::from_args, returns clap::Error on failure instead of aborting the program,
so calling .exit is up to you. Read more
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, [src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone, [src]Gets the struct from any iterator such as a Vec of your making.
Print the error message and quit the program in case of failure. Read more
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]
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]Gets the struct from any iterator such as a Vec of your making. Read more
impl StructOptInternal for InitCommand[src]
impl StructOptInternal for InitCommand[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 InitCommand
impl Send for InitCommand
impl Sync for InitCommand
impl Unpin for InitCommand
impl UnwindSafe for InitCommand
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,