pub enum Command {
Init(InitArgs),
Check(CheckArgs),
Link(LinkArgs),
Run(RunArgs),
Trace(TraceArgs),
Bench(BenchArgs),
Pack(PackArgs),
Publish(PublishArgs),
Inspect(InspectArgs),
Doctor(DoctorArgs),
Completions(CompletionsArgs),
}Expand description
All available subcommands for the torvyn binary.
Variants§
Init(InitArgs)
Create a new Torvyn project.
Scaffolds a complete project with WIT contracts, implementation stubs, a Torvyn.toml manifest, and build configuration. The generated project compiles and runs out of the box.
Check(CheckArgs)
Validate contracts, manifest, and project structure.
Performs static analysis: parses WIT contracts, validates the manifest schema, resolves references, and checks capability declarations.
Link(LinkArgs)
Verify component composition compatibility.
Given a pipeline configuration, verifies that all component interfaces are compatible and the topology is valid (DAG, connected, role-consistent).
Run(RunArgs)
Execute a pipeline locally.
Instantiates the Torvyn host runtime, loads components, and runs the pipeline. Displays element count, errors, and completion status.
Trace(TraceArgs)
Run with full diagnostic tracing.
Like run but with full tracing enabled. Outputs flow timeline
showing per-stage latency, resource transfers, backpressure events.
Bench(BenchArgs)
Benchmark a pipeline.
Runs the pipeline under sustained load with warmup, then produces a report with p50/p95/p99/p99.9 latency, throughput, copy count, memory, and resource utilization.
Pack(PackArgs)
Package as OCI artifact.
Assembles compiled components, contracts, and metadata into a distributable artifact.
Publish(PublishArgs)
Publish to a registry.
Pushes a packaged artifact to a registry. For Phase 0: local directory registry only.
Inspect(InspectArgs)
Inspect a component or artifact.
Displays metadata, interfaces, capabilities, and size information for a compiled .wasm file or packaged artifact.
Doctor(DoctorArgs)
Check development environment.
Verifies required tools, correct versions, and common misconfigurations.
Run torvyn doctor --fix to attempt automatic repair.
Completions(CompletionsArgs)
Generate shell completions.
Prints a completion script to stdout for the specified shell.
Example: torvyn completions bash > ~/.bash_completion.d/torvyn
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for Command
impl Subcommand for Command
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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> 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