Skip to main content

USAGE

Constant USAGE 

Source
pub const USAGE: &str = "$fy - Convert shell scripts and competitor source to command-stream modules\n\nUsage: $fy [options] [input.sh|input.mjs|input.cjs|-] [output.mjs]\nRead stdin when no input is given or input is -; print unless output is given.\n\n  --from shell|javascript|zx|execa|shelljs|cross-spawn|bun\n  --shell sh|bash|dash|zsh    Interpreter (default: shebang or sh)\n  --module NAME             Target package (default: command-stream)\n  --no-use-m                Import the installed package directly\n  --no-shebang              Omit the generated interpreter line\n  --commonjs                Wrap CommonJS source as an ES module\n  --structural              Compile the supported shell subset to JS statements\n  -h, --help                Show this help\n\nShell programs use command-stream + use-m and retain shell semantics.\nJavaScript imports migrate to command-stream compatibility APIs.\nOutput files must not already exist.\n";