pub struct SyncbackCommand {
pub project: PathBuf,
pub input: PathBuf,
pub list: bool,
pub dry_run: bool,
pub non_interactive: bool,
}Expand description
Performs ‘syncback’ for the provided project, using the input file
given.
Syncback exists to convert Roblox files into a Rojo project automatically. It uses the project.json file provided to traverse the Roblox file passed as to serialize Instances to the file system in a format that Rojo understands.
To ease programmatic use, this command pipes all normal output to stderr.
Fields§
§project: PathBufPath to the project to sync back to.
input: PathBufPath to the Roblox file to pull Instances from.
list: boolIf provided, a list all of the files and directories that will be added or removed is emitted into stdout.
dry_run: boolIf provided, syncback will not actually write anything to the file system. The command will otherwise run normally.
non_interactive: boolIf provided, the prompt for writing to the file system is skipped.
Implementations§
Source§impl SyncbackCommand
impl SyncbackCommand
pub fn run(&self, global: GlobalOptions) -> Result<()>
Trait Implementations§
Source§impl Args for SyncbackCommand
impl Args for SyncbackCommand
Source§impl CommandFactory for SyncbackCommand
impl CommandFactory for SyncbackCommand
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 SyncbackCommand
impl Debug for SyncbackCommand
Source§impl FromArgMatches for SyncbackCommand
impl FromArgMatches for SyncbackCommand
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 SyncbackCommand
impl Parser for SyncbackCommand
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 SyncbackCommand
impl RefUnwindSafe for SyncbackCommand
impl Send for SyncbackCommand
impl Sync for SyncbackCommand
impl Unpin for SyncbackCommand
impl UnsafeUnpin for SyncbackCommand
impl UnwindSafe for SyncbackCommand
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
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>
Converts
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>
Converts
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