Skip to main content

Commands

Enum Commands 

Source
pub enum Commands {
    Init {
        stack: Option<String>,
        services: Option<String>,
        path: String,
        yes: bool,
    },
    Validate {
        env: String,
        example: String,
        strict: bool,
        fix: bool,
        format: String,
        exit_zero: bool,
    },
    Scan {
        path: Vec<String>,
        exclude: Vec<String>,
        pattern: Vec<String>,
        ignore_placeholders: bool,
        format: String,
        exit_zero: bool,
    },
    Diff {
        env: String,
        example: String,
        show_values: bool,
        format: String,
        reverse: bool,
    },
    Convert {
        env: String,
        to: Option<String>,
        output: Option<String>,
        include: Option<String>,
        exclude: Option<String>,
        base64: bool,
        prefix: Option<String>,
        transform: Option<String>,
    },
    Sync {
        direction: String,
        placeholder: bool,
    },
    Template {
        input: String,
        output: String,
        env: String,
    },
    Doctor {
        path: String,
    },
    Completions {
        shell: String,
    },
}

Variants§

§

Init

Interactive project setup — generates .env.example

Fields

§stack: Option<String>

Project stack (python, nodejs, rust, go, php)

§services: Option<String>

Services to include (comma-separated)

§path: String

Output path for .env.example

§yes: bool

Skip all prompts and use defaults

§

Validate

Check .env against .env.example, find issues

Fields

§env: String

Path to .env file

§example: String

Path to .env.example file

§strict: bool

Fail on warnings, not just errors

§fix: bool

Auto-fix safe issues

§format: String

Output format (pretty, json, github-actions)

§exit_zero: bool

Always exit with 0 (useful in CI)

§

Scan

Detect secrets that look real (AWS keys, tokens, etc.)

Fields

§path: Vec<String>

Files/directories to scan

§exclude: Vec<String>

Exclude files matching pattern

§pattern: Vec<String>

Only scan for specific patterns (aws, stripe, github, all)

§ignore_placeholders: bool

Skip obvious placeholders

§format: String

Output format (pretty, json, sarif)

§exit_zero: bool

Don’t fail CI even if secrets found

§

Diff

Compare .env vs .env.example — show missing/extra vars

Fields

§env: String

Path to .env file

§example: String

Path to .env.example file

§show_values: bool

Show actual values (default: hide for security)

§format: String

Output format (pretty, json, patch)

§reverse: bool

Reverse comparison (.env.example vs .env)

§

Convert

Transform to different formats (JSON, YAML, shell, etc.)

Fields

§env: String

Input .env file

§to: Option<String>

Target format (required in non-interactive mode)

§output: Option<String>

Output file (default: stdout)

§include: Option<String>

Include only matching vars (glob pattern)

§exclude: Option<String>

Exclude matching vars

§base64: bool

Base64-encode all values

§prefix: Option<String>

Add prefix to all keys

§transform: Option<String>

Key transform (uppercase, lowercase, camelCase, snake_case)

§

Sync

Keep .env and .env.example in sync

Fields

§direction: String

Direction (forward: .env → .env.example, reverse: .env.example → .env)

§placeholder: bool

Add with placeholder values

§

Template

Generate config files from templates

Fields

§input: String

Input template file

§output: String

Output file

§env: String

.env file to use for values

§

Doctor

Diagnose common setup issues

Fields

§path: String

Project directory to diagnose

§

Completions

Generate shell completions

Fields

§shell: String

Shell type (bash, zsh, fish, powershell)

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<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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.