pub struct ListCmd {}
Expand description
List objects or files within objects
When listing objects, rocfl must scan the entire repository, and can therefore be very slow when operating on large repositories or repositories in S3. Results will be printed as soon as they’re found so long as the results do not need to be sorted or displayed in a formatted table. Use ‘-t’ to disable the table formatting.
This command supports glob expressions. When you use globs, it is usually a good idea to quote them so that your shell does not attempt to expand them.
Fields
logical_dirs: bool
Interpret logical path parts as logical directories
Instead of listing all of the paths in the object, only the paths that are direct logical children of the query are returned. This is analogous to executing ls on the local filesystem.
long: bool
Enable long output
Format: Version, Updated, Name (Object ID or Logical Path)
physical: bool
Display the physical path to the item relative the repository storage root
digest: bool
Display the digest of the item in the format ‘algorithm:digest’
header: bool
Display a header row
tsv: bool
Tab separate the output
staged: bool
List staged objects or the contents of a specific staged object
version: Option<VersionNum>
Version of the object to list
sort: Field
Field to sort on. By default, objects are unsorted and object contents are sorted on name.
reverse: bool
Reverse the order of the sort
objects: bool
List only objects; not their contents. Useful when glob matching on object IDs
object_id: Option<String>
ID of the object to list. May be a glob when used with ‘-o’.
path: Option<String>
Path glob of files to list. Requires an object to be specified.
Trait Implementations
sourceimpl FromArgMatches for ListCmd
impl FromArgMatches for ListCmd
sourcefn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Instantiate Self
from ArgMatches
, parsing the arguments as needed. Read more
sourcefn 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>
Assign values from ArgMatches
to self
.
Auto Trait Implementations
impl RefUnwindSafe for ListCmd
impl Send for ListCmd
impl Sync for ListCmd
impl Unpin for ListCmd
impl UnwindSafe for ListCmd
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more