Enum calypso::cli::InternalCmd
source · pub enum InternalCmd {
BuildInfo,
Panic,
Unpretty {
repl: bool,
format: UnprettyFormat,
input: PathBuf,
},
}
Variants§
BuildInfo
Show information about the environment where this executable was built.
Panic
Intentionally panic in order to test out handling of ICEs (internal compiler errors).
Unpretty
Fields
§
repl: bool
Use a REPL-like interface when using standard input. This does not affect behaviour when using file input.
§
format: UnprettyFormat
The “unpretty” format to output.
Current formats:
-
toks
: Token list -
ast
: Abstract syntax tree (AST)
Run analyses on Calypso source files and return the result in an “unpretty” format, e.g. AST (abstract syntax tree) or token list.
Trait Implementations§
source§impl Debug for InternalCmd
impl Debug for InternalCmd
source§impl FromArgMatches for InternalCmd
impl FromArgMatches for InternalCmd
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 InternalCmd
impl Subcommand for InternalCmd
source§fn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands<'b>(__clap_app: Command<'b>) -> Command<'b>
source§fn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
fn augment_subcommands_for_update<'b>(__clap_app: Command<'b>) -> Command<'b>
source§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self
can parse a specific subcommand