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
Validate
Check .env against .env.example, find issues
Fields
Scan
Detect secrets that look real (AWS keys, tokens, etc.)
Fields
Diff
Compare .env vs .env.example — show missing/extra vars
Fields
Convert
Transform to different formats (JSON, YAML, shell, etc.)
Fields
Sync
Keep .env and .env.example in sync
Fields
Template
Generate config files from templates
Fields
Doctor
Diagnose common setup issues
Completions
Generate shell completions
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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>
Assign values from
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>
Assign values from
ArgMatches to self.Source§impl Subcommand for Commands
impl Subcommand for Commands
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
Append to
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
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnsafeUnpin for Commands
impl UnwindSafe for Commands
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
Mutably borrows from an owned value. Read more