Skip to main content

Commands

Enum Commands 

Source
pub enum Commands {
Show 15 variants Bake { input: PathBuf, frames: usize, dt: f64, output: PathBuf, }, Render { input: PathBuf, frame: Option<i64>, frames: Option<usize>, dt: f64, width: u32, height: u32, out: Option<PathBuf>, out_dir: Option<PathBuf>, prefix: String, background: String, }, Pack { input: PathBuf, output: PathBuf, }, Unpack { input: PathBuf, output: PathBuf, }, Info { input: PathBuf, json: bool, }, Validate { input: PathBuf, fix: bool, deep: bool, json: bool, warnings_as_errors: bool, }, Diff { a: PathBuf, b: PathBuf, fail_on_diff: bool, }, New { output: PathBuf, template: String, }, Templates {}, Play { input: PathBuf, duration: f64, }, ExportLottie { input: PathBuf, output: PathBuf, strict: bool, }, ImportLottie { input: PathBuf, output: PathBuf, strict: bool, }, ExportSvg { input: PathBuf, output: PathBuf, frame: f64, strict: bool, }, ImportSvg { input: PathBuf, output: PathBuf, strict: bool, }, Completions { shell: Shell, },
}

Variants§

§

Bake

Bake animation frames to JSON scenes (golden tests / export)

Fields

§input: PathBuf
§frames: usize
§dt: f64
§output: PathBuf
§

Render

Rasterize to PNG via the Repose WGPU renderer: a single frame (–frame) or a sequence (–frames)

Fields

§input: PathBuf
§frame: Option<i64>
§frames: Option<usize>
§dt: f64
§width: u32
§height: u32
§out: Option<PathBuf>

Single-frame output path

§out_dir: Option<PathBuf>

Sequence output directory

§prefix: String
§background: String

“transparent”, “white”, “black”, or hex RRGGBB[AA]

§

Pack

Pack .ren -> binary .renb

Fields

§input: PathBuf
§output: PathBuf
§

Unpack

Unpack .renb -> pretty .ren

Fields

§input: PathBuf
§output: PathBuf
§

Info

Show project info

Fields

§input: PathBuf
§json: bool

Emit a machine-readable JSON summary

§

Validate

Validate + normalize (optionally fix in place, or deep-validate)

Fields

§input: PathBuf
§fix: bool
§deep: bool

Run deep structural validation and print diagnostics

§json: bool

Emit the deep validation report as JSON

§warnings_as_errors: bool

Exit 1 on warnings as well as errors in deep mode

§

Diff

Structural diff between two .ren/.renb files

Fields

§fail_on_diff: bool

Exit with status 1 if any differences are found

§

New

Scaffold a new .ren project

Fields

§output: PathBuf
§template: String

Template slug, e.g. “blank”, “bouncing-ball” (run renamite templates)

§

Templates

List built-in project templates

§

Play

Headless playback (prints machine events)

Fields

§input: PathBuf
§duration: f64
§

ExportLottie

Export a .ren/.renb project to Lottie JSON.

Fields

§input: PathBuf
§output: PathBuf
§strict: bool

Fail if the exporter emitted compatibility warnings.

§

ImportLottie

Convert Lottie JSON to a Renamite project.

Fields

§input: PathBuf
§output: PathBuf
§strict: bool

Fail if unsupported objects were skipped.

§

ExportSvg

Export a .ren/.renb project to a static SVG frame snapshot.

Fields

§input: PathBuf
§output: PathBuf
§frame: f64
§strict: bool

Fail if the exporter emitted compatibility warnings.

§

ImportSvg

Convert an SVG file to a Renamite project.

Fields

§input: PathBuf
§output: PathBuf
§strict: bool

Fail if unsupported objects were skipped.

§

Completions

Generate shell completions

Fields

§shell: Shell

Trait Implementations§

Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,