Struct rocfl::cmd::opts::ListCmd[][src]

pub struct ListCmd {
Show 13 fields pub logical_dirs: bool, pub long: bool, pub physical: bool, pub digest: bool, pub header: bool, pub tsv: bool, pub staged: bool, pub version: Option<VersionNum>, pub sort: Field, pub reverse: bool, pub objects: bool, pub object_id: Option<String>, pub path: Option<String>,
}
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

Append to App so it can instantiate Self. Read more

Append to App so it can update self. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more

Assign values from ArgMatches to self.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more