Struct iquery::commands::ShowCommand
source · pub struct ShowCommand {
pub manifest: Option<String>,
pub selectors: Vec<String>,
pub accessor: Option<String>,
}
Expand description
Prints the inspect hierarchies that match the given selectors.
Fields§
§manifest: Option<String>
the name of the manifest file that we are interested in. If this is provided, the output will only contain monikers for components whose url contains the provided name.
selectors: Vec<String>
selectors representing the Inspect data that should be queried.
If no selectors are provided, Inspect data for the whole system will be returned.
This command accepts the following as a selector:
- A component moniker, for example,
core/network/netstack
. Doesn’t work if--manifest
is passed. - A component selector, for example,
core/network/*
. Doesn’t work if--manifest
is passed. - A tree selector, for example,
core/network/netstack:root/path/to/*:property
To learn more about selectors see https://fuchsia.dev/fuchsia-src/reference/diagnostics/selectors.
The following characters in a selector must be escaped with \
: *
, :
, \
, /
and
whitespace.
When *
or other characters cause ambiguity with your shell, make sure to wrap the
selector in single or double quotes. For example:
ffx inspect show "bootstrap/boot-drivers:*:root/path/to\:some:prop"
accessor: Option<String>
A string specifying what fuchsia.diagnostics.ArchiveAccessor
to connect to.
The selector will be in the form of:
Typically this is the output of iquery list-accessors
.
For example: bootstrap/archivist:expose:fuchsia.diagnostics.FeedbackArchiveAccessor
means that the command will connect to the FeedbackArchiveAccecssor
exposed by bootstrap/archivist
.
Trait Implementations§
source§impl ArgsInfo for ShowCommand
impl ArgsInfo for ShowCommand
source§fn get_args_info() -> CommandInfoWithArgs
fn get_args_info() -> CommandInfoWithArgs
§fn get_subcommands() -> Vec<SubCommandInfo<'static>>
fn get_subcommands() -> Vec<SubCommandInfo<'static>>
source§impl Command for ShowCommand
impl Command for ShowCommand
type Result = ShowResult
fn execute<'life0, 'life1, 'async_trait, P>(
&'life0 self,
provider: &'life1 P,
) -> Pin<Box<dyn Future<Output = Result<Self::Result, Error>> + Send + 'async_trait>>where
P: 'async_trait + DiagnosticsProvider,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
source§impl Debug for ShowCommand
impl Debug for ShowCommand
source§impl FromArgs for ShowCommand
impl FromArgs for ShowCommand
source§fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
source§fn redact_arg_values(
__cmd_name: &[&str],
__args: &[&str],
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values( __cmd_name: &[&str], __args: &[&str], ) -> Result<Vec<String>, EarlyExit>
source§impl PartialEq for ShowCommand
impl PartialEq for ShowCommand
source§fn eq(&self, other: &ShowCommand) -> bool
fn eq(&self, other: &ShowCommand) -> bool
self
and other
values to be equal, and is used
by ==
.