pub struct ListCommand {Show 14 fields
pub name: Vec<String>,
pub cmd: bool,
pub in_dir: Option<String>,
pub path: Option<String>,
pub min_cpu: Option<f32>,
pub min_mem: Option<f64>,
pub status: Option<StatusFilter>,
pub min_uptime: Option<u64>,
pub parent: Option<u32>,
pub json: bool,
pub verbose: bool,
pub wide: bool,
pub limit: Option<usize>,
pub sort: SortKey,
}Expand description
List processes
Fields§
§name: Vec<String>Process name(s) to filter by (separate arguments for several)
cmd: boolMatch the names as a substring of the process name or full command line (like pkill -f)
in_dir: Option<String>Filter by directory; takes the next word as the directory unless it starts with ‘-’ (bare –in is the current directory, –in=DIR is explicit)
path: Option<String>Filter by executable path
min_cpu: Option<f32>Only show processes using more than this CPU %
min_mem: Option<f64>Only show processes using more than this memory (MB)
status: Option<StatusFilter>Filter by status: running, sleeping, stopped, zombie
min_uptime: Option<u64>Only show processes running longer than this (seconds)
parent: Option<u32>Only show children of this parent PID
json: boolOutput as JSON
verbose: boolShow verbose output with command line, cwd, parent PID, and uptime
wide: boolPrint full directories and arguments instead of fitting the terminal width
limit: Option<usize>Limit the number of results
sort: SortKeySort by: cpu, mem (biggest first); pid, name (ascending). Ties come by PID
Implementations§
Trait Implementations§
Source§impl Args for ListCommand
impl Args for ListCommand
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for ListCommand
impl Debug for ListCommand
Source§impl FromArgMatches for ListCommand
impl FromArgMatches for ListCommand
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.