Struct librojo::cli::SourcemapCommand
source · pub struct SourcemapCommand {
pub project: PathBuf,
pub output: Option<PathBuf>,
pub include_non_scripts: bool,
pub watch: bool,
}Expand description
Generates a sourcemap file from the Rojo project.
Fields§
§project: PathBufPath to the project to use for the sourcemap. Defaults to the current directory.
output: Option<PathBuf>Where to output the sourcemap. Omit this to use stdout instead of writing to a file.
Should end in .json.
include_non_scripts: boolIf non-script files should be included or not. Defaults to false.
watch: boolWhether to automatically recreate a snapshot when any input files change.
Implementations§
Trait Implementations§
source§impl Args for SourcemapCommand
impl Args for SourcemapCommand
source§impl CommandFactory for SourcemapCommand
impl CommandFactory for SourcemapCommand
source§fn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
Deprecated, replaced with
CommandFactory::command_for_updatesource§impl Debug for SourcemapCommand
impl Debug for SourcemapCommand
source§impl FromArgMatches for SourcemapCommand
impl FromArgMatches for SourcemapCommand
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>
Assign values from
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>
Assign values from
ArgMatches to self.source§impl Parser for SourcemapCommand
impl Parser for SourcemapCommand
source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error
Auto Trait Implementations§
impl Freeze for SourcemapCommand
impl RefUnwindSafe for SourcemapCommand
impl Send for SourcemapCommand
impl Sync for SourcemapCommand
impl Unpin for SourcemapCommand
impl UnwindSafe for SourcemapCommand
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
Mutably borrows from an owned value. Read more