Skip to main content

Crate toargv

Crate toargv 

Source
Expand description

I/O and command execution for the toargv configuration-to-arguments CLI.

build_arguments loads a TOML or JSON configuration, parses an argv template, and expands it into an ordered argument vector. The remaining helpers render or execute that vector.

Re-exports§

pub use error::Error;
pub use execute::execute;
pub use load::load_config;

Modules§

cli
Command-line parsing and resolved output modes.
error
Errors returned by loading, rendering, and execution.
execute
Direct process execution without a shell.
expand
Argument expansion from configuration values.
load
Configuration loading.
template
Template parsing and expansion re-exported from toargv_template.

Structs§

Template
A validated, ordered argv template.

Functions§

build_arguments
Loads a configuration, parses an argv template, and expands its arguments.
expand
Expands a validated template against a JSON-compatible configuration tree.
full_argv
Concatenates a command prefix with expanded arguments, matching the argv execute spawns.
render_shell
Renders an argument vector as shell syntax that preserves argument boundaries.