Enum QueryCommands

Source
pub enum QueryCommands {
    ConnectedFiles {
        path: String,
        config: Option<String>,
        no_ignore: bool,
        file: String,
        graph: Option<String>,
        format: String,
    },
    ItemInfo {
        path: String,
        config: Option<String>,
        no_ignore: bool,
        item_id: String,
        graph: Option<String>,
        show_code: bool,
        format: String,
    },
    FunctionUsage {
        path: String,
        config: Option<String>,
        no_ignore: bool,
        function: String,
        direction: String,
        graph: Option<String>,
        format: String,
    },
    Cycles {
        path: String,
        config: Option<String>,
        no_ignore: bool,
        graph: Option<String>,
        format: String,
    },
    Path {
        path: String,
        config: Option<String>,
        no_ignore: bool,
        from: String,
        to: String,
        graph: Option<String>,
        format: String,
    },
    Hubs {
        path: String,
        config: Option<String>,
        no_ignore: bool,
        graph: Option<String>,
        metric: String,
        top: usize,
        format: String,
    },
    ModuleCentrality {
        path: String,
        config: Option<String>,
        no_ignore: bool,
        graph: Option<String>,
        metric: String,
        top: usize,
        format: String,
    },
    TraitImpls {
        path: String,
        config: Option<String>,
        no_ignore: bool,
        trait: String,
        graph: Option<String>,
        format: String,
    },
    UnreferencedItems {
        path: String,
        config: Option<String>,
        no_ignore: bool,
        include_public: bool,
        exclude: Option<String>,
        graph: Option<String>,
        format: String,
    },
}

Variants§

§

ConnectedFiles

List files connected to the given file via relationships

Fields

§path: String

Path to project root (directory containing src/)

§config: Option<String>

Path to a TOML configuration file

§no_ignore: bool

Bypass ignore rules (.gitignore/.ignore) when discovering files

§file: String

The file to analyze (absolute or relative)

§graph: Option<String>

Optional path to a prebuilt graph JSON (skips rebuild)

§format: String

Output format: text or json

§

ItemInfo

Show a single item’s definition and relations by ItemId

Fields

§path: String

Path to project root (directory containing src/)

§config: Option<String>

Path to a TOML configuration file

§no_ignore: bool

Bypass ignore rules (.gitignore/.ignore) when discovering files

§item_id: String

ItemId (e.g., fn:createIcons:6)

§graph: Option<String>

Optional path to a prebuilt graph JSON (skips rebuild)

§show_code: bool

Include code snippet of the item’s definition

§format: String

Output format: text or json

§

FunctionUsage

List files that call or are called by a given function name

Fields

§path: String

Path to project root (directory containing src/)

§config: Option<String>

Path to a TOML configuration file

§no_ignore: bool

Bypass ignore rules (.gitignore/.ignore) when discovering files

§function: String

Function name to analyze

§direction: String

Direction: callers or callees

§graph: Option<String>

Optional path to a prebuilt graph JSON (skips rebuild)

§format: String

Output format: text or json

§

Cycles

Detect cycles between files

Fields

§path: String

Path to project root (directory containing src/)

§config: Option<String>

Path to a TOML configuration file

§no_ignore: bool

Bypass ignore rules (.gitignore/.ignore) when discovering files

§graph: Option<String>

Optional path to a prebuilt graph JSON (skips rebuild)

§format: String

Output format: text or json

§

Path

Compute shortest path between two files

Fields

§path: String

Path to project root (directory containing src/)

§config: Option<String>

Path to a TOML configuration file

§no_ignore: bool

Bypass ignore rules (.gitignore/.ignore) when discovering files

§from: String

Source file path

§to: String

Destination file path

§graph: Option<String>

Optional path to a prebuilt graph JSON (skips rebuild)

§format: String

Output format: text or json

§

Hubs

List top-N hub files by degree centrality

Fields

§path: String

Path to project root (directory containing src/)

§config: Option<String>

Path to a TOML configuration file

§no_ignore: bool

Bypass ignore rules (.gitignore/.ignore) when discovering files

§graph: Option<String>

Optional path to a prebuilt graph JSON (skips rebuild)

§metric: String

Metric: in, out, total

§top: usize

Top N results

§format: String

Output format: text or json

§

ModuleCentrality

List top-N modules (directories) by degree centrality

Fields

§path: String

Path to project root (directory containing src/)

§config: Option<String>

Path to a TOML configuration file

§no_ignore: bool

Bypass ignore rules (.gitignore/.ignore) when discovering files

§graph: Option<String>

Optional path to a prebuilt graph JSON (skips rebuild)

§metric: String

Metric: in, out, total

§top: usize

Top N results

§format: String

Output format: text or json

§

TraitImpls

List types implementing a trait

Fields

§path: String

Path to project root (directory containing src/)

§config: Option<String>

Path to a TOML configuration file

§no_ignore: bool

Bypass ignore rules (.gitignore/.ignore) when discovering files

§trait: String

Trait name (e.g., Display)

§graph: Option<String>

Optional path to a prebuilt graph JSON (skips rebuild)

§format: String

Output format: text or json

§

UnreferencedItems

List items with no inbound usage edges (potentially dead code)

Fields

§path: String

Path to project root (directory containing src/)

§config: Option<String>

Path to a TOML configuration file

§no_ignore: bool

Bypass ignore rules (.gitignore/.ignore) when discovering files

§include_public: bool

Include public items as well (by default public items are excluded)

§exclude: Option<String>

Regex to exclude paths (e.g., ‘tests|benches|examples’)

§graph: Option<String>

Optional path to a prebuilt graph JSON (skips rebuild)

§format: String

Output format: text or json

Trait Implementations§

Source§

impl Debug for QueryCommands

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for QueryCommands

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 QueryCommands

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
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.