Struct iquery::commands::SelectorsCommand
source · pub struct SelectorsCommand {
pub manifest: Option<String>,
pub selectors: Vec<String>,
pub accessor: Option<String>,
}
Expand description
Lists all available full selectors (component selector + tree selector). If a selector is provided, it’ll only print selectors for that component. If a full selector (component + tree) is provided, it lists all selectors under the given node.
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 for which the selectors should be queried. Minimum: 1 unless --manifest
is set.
When --manifest
is provided then the selectors should be tree selectors, otherwise
they can be component selectors or full selectors.
accessor: Option<String>
A selector 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 SelectorsCommand
impl ArgsInfo for SelectorsCommand
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 SelectorsCommand
impl Command for SelectorsCommand
type Result = SelectorsResult
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 SelectorsCommand
impl Debug for SelectorsCommand
source§impl FromArgs for SelectorsCommand
impl FromArgs for SelectorsCommand
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 SelectorsCommand
impl PartialEq for SelectorsCommand
source§fn eq(&self, other: &SelectorsCommand) -> bool
fn eq(&self, other: &SelectorsCommand) -> bool
self
and other
values to be equal, and is used
by ==
.