pub enum QuerySubcommand {
Show 13 variants
Ns(QueryNsCommand),
Defs(QueryDefsCommand),
Config(QueryConfigCommand),
Error(QueryErrorCommand),
Def(QueryDefCommand),
Find(QueryFindCommand),
Usages(QueryUsagesCommand),
Search(QuerySearchCommand),
SearchExpr(QuerySearchExprCommand),
Schema(QuerySchemaCommand),
Type(QueryTypeCommand),
TypeAt(QueryTypeAtCommand),
Context(QueryContextCommand),
}Variants§
Ns(QueryNsCommand)
list namespaces (or show ns details if namespace provided)
Defs(QueryDefsCommand)
list definitions in a namespace
Config(QueryConfigCommand)
read project configs
Error(QueryErrorCommand)
read .calcit/error.cirru file
Def(QueryDefCommand)
read a definition’s full code, summary (--summary), or examples/tests (--only)
Find(QueryFindCommand)
find symbol across namespaces
Usages(QueryUsagesCommand)
find usages of a definition
Search(QuerySearchCommand)
search for leaf nodes (strings) in definition
SearchExpr(QuerySearchExprCommand)
search for structural expressions (Cirru expr or JSON array) in definition
Schema(QuerySchemaCommand)
read a definition’s schema (type information)
Type(QueryTypeCommand)
inspect a type and its statically available methods
TypeAt(QueryTypeAtCommand)
inspect the inferred and expected type at one Snapshot expression path
Context(QueryContextCommand)
gather bounded semantic context for one definition
Trait Implementations§
Source§impl Clone for QuerySubcommand
impl Clone for QuerySubcommand
Source§impl Debug for QuerySubcommand
impl Debug for QuerySubcommand
Source§impl FromArgs for QuerySubcommand
impl FromArgs for QuerySubcommand
Source§fn from_args(command_name: &[&str], args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(command_name: &[&str], args: &[&str]) -> Result<Self, EarlyExit>
Construct the type from an input set of arguments. Read more
Source§fn redact_arg_values(
command_name: &[&str],
args: &[&str],
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values( command_name: &[&str], args: &[&str], ) -> Result<Vec<String>, EarlyExit>
Get a String with just the argument names, e.g., options, flags, subcommands, etc, but
without the values of the options and arguments. This can be useful as a means to capture
anonymous usage statistics without revealing the content entered by the end user. Read more
Source§impl PartialEq for QuerySubcommand
impl PartialEq for QuerySubcommand
impl StructuralPartialEq for QuerySubcommand
Source§impl SubCommands for QuerySubcommand
impl SubCommands for QuerySubcommand
Source§const COMMANDS: &'static [&'static CommandInfo]
const COMMANDS: &'static [&'static CommandInfo]
Info for the commands.
Source§fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
Get a list of commands that are discovered at runtime.
Auto Trait Implementations§
impl Forget for QuerySubcommand
impl Freeze for QuerySubcommand
impl Move for QuerySubcommand
impl RefUnwindSafe for QuerySubcommand
impl Send for QuerySubcommandwhere
RawVecInner: Send,
impl Sync for QuerySubcommandwhere
RawVecInner: Sync,
impl Unpin for QuerySubcommand
impl UnsafeUnpin for QuerySubcommand
impl UnwindSafe for QuerySubcommandwhere
RawVecInner: UnwindSafe,
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