pub struct WatchArgs {
pub path: PathBuf,
pub no_inital: bool,
pub debounce_time: u64,
pub watch: Vec<PathBuf>,
pub execute: Vec<String>,
pub no_execute: bool,
pub shell: Vec<String>,
}Fields§
§path: PathBufThe path of the project to watch.
no_inital: boolOnly run after changes are detected.
Skips the initial run of the commands.
debounce_time: u64The time to wait in ms before running the command after changes are detected.
watch: Vec<PathBuf>Additional paths to watch for changes.
By default, the src directory, pack.png, and pack.toml as well as the defined
assets directory in the config are watched.
execute: Vec<String>The shulkerscript commands to run in the project directory when changes are detected.
Use multiple times to run multiple commands. Internal commands will always run before shell commands and a command will only run if the previous one exited successfully.
Use the --no-execute flag to disable running these commands, useful when only wanting to
run shell commands and not default build command.
no_execute: boolDo not run the internal shulkerscript commands specified by --execute (and the default one).
shell: Vec<String>The shell commands to run in the project directory when changes are detected.
Use multiple times to run multiple commands. Shell commands will always run after shulkerscript commands and a command will only run if the previous one exited successfully.
Trait Implementations§
Source§impl Args for WatchArgs
impl Args for WatchArgs
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 FromArgMatches for WatchArgs
impl FromArgMatches for WatchArgs
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.Auto Trait Implementations§
impl Freeze for WatchArgs
impl RefUnwindSafe for WatchArgs
impl Send for WatchArgs
impl Sync for WatchArgs
impl Unpin for WatchArgs
impl UnwindSafe for WatchArgs
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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