pub enum QueryCommands {
ConnectedFiles {
path: Option<PathBuf>,
config: Option<String>,
no_ignore: bool,
file_pos: Option<String>,
file: Option<String>,
graph: Option<String>,
format: OutputFormat,
offset: usize,
limit: Option<usize>,
},
ItemInfo {
path: Option<PathBuf>,
config: Option<String>,
no_ignore: bool,
item_id: Option<String>,
name: Option<String>,
kind: Option<ItemKindArg>,
graph: Option<String>,
show_code: bool,
format: OutputFormat,
},
FunctionUsage {
path: Option<PathBuf>,
config: Option<String>,
no_ignore: bool,
function: String,
direction: Direction,
graph: Option<String>,
format: OutputFormat,
offset: usize,
limit: Option<usize>,
},
Cycles {
path: Option<PathBuf>,
config: Option<String>,
no_ignore: bool,
graph: Option<String>,
format: OutputFormat,
offset: usize,
limit: Option<usize>,
},
Path {
path: Option<PathBuf>,
config: Option<String>,
no_ignore: bool,
from: String,
to: String,
graph: Option<String>,
format: OutputFormat,
offset: usize,
limit: Option<usize>,
},
Hubs {
path: Option<PathBuf>,
config: Option<String>,
no_ignore: bool,
graph: Option<String>,
metric: CentralityMetricArg,
top: usize,
format: OutputFormat,
offset: usize,
limit: Option<usize>,
},
ModuleCentrality {
path: Option<PathBuf>,
config: Option<String>,
no_ignore: bool,
graph: Option<String>,
metric: CentralityMetricArg,
top: usize,
format: OutputFormat,
offset: usize,
limit: Option<usize>,
},
TraitImpls {
path: Option<PathBuf>,
config: Option<String>,
no_ignore: bool,
trait: String,
graph: Option<String>,
format: OutputFormat,
offset: usize,
limit: Option<usize>,
},
UnreferencedItems {
path: Option<PathBuf>,
config: Option<String>,
no_ignore: bool,
include_public: bool,
exclude: Option<String>,
graph: Option<String>,
format: OutputFormat,
offset: usize,
limit: Option<usize>,
},
}Variants§
ConnectedFiles
List files connected to the given file via relationships
Fields
format: OutputFormatOutput format: text or json
ItemInfo
Show a single item’s definition and relations by ItemId
Fields
name: Option<String>Lookup by item name (e.g., createIcons). Use with optional –kind to disambiguate
kind: Option<ItemKindArg>Optional kind to narrow name lookup (e.g., function, struct)
format: OutputFormatOutput format: text or json
FunctionUsage
List files that call or are called by a given function name
Fields
format: OutputFormatOutput format: text or json
Cycles
Detect cycles between files
Fields
format: OutputFormatOutput format: text or json
Path
Compute shortest path between two files
Fields
format: OutputFormatOutput format: text or json
Hubs
List top-N hub files by degree centrality
Fields
metric: CentralityMetricArgMetric: in, out, total
format: OutputFormatOutput format: text or json
ModuleCentrality
List top-N modules (directories) by degree centrality
Fields
metric: CentralityMetricArgMetric: in, out, total
format: OutputFormatOutput format: text or json
TraitImpls
List types implementing a trait
Fields
format: OutputFormatOutput format: text or json
UnreferencedItems
List items with no inbound usage edges (potentially dead code)
Fields
format: OutputFormatOutput format: text or json
Trait Implementations§
Source§impl Debug for QueryCommands
impl Debug for QueryCommands
Source§impl FromArgMatches for QueryCommands
impl FromArgMatches for QueryCommands
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>
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>
ArgMatches to self.Source§impl Subcommand for QueryCommands
impl Subcommand for QueryCommands
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
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
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for QueryCommands
impl RefUnwindSafe for QueryCommands
impl Send for QueryCommands
impl Sync for QueryCommands
impl Unpin for QueryCommands
impl UnsafeUnpin for QueryCommands
impl UnwindSafe for QueryCommands
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more