Module list

Source
Expand description

Data structures and functions specific to xvc file list

  • ListCLI defines the command line options
  • cmd_list is the entry point to run the command

Structs§

ListCLI
List files and their actual and cached metadata.
ListFormat
Represents the format of a list, including the columns to be displayed.
ListRow
A single item in the list output
ListRows
All rows of the file list and its format and sorting criteria

Enums§

ListColumn
Format specifier for file list columns
ListSortCriteria
Specify how to sort file list

Functions§

build_row
Print a single row from the given element and the format
build_table
Build a table from the list of rows
cmd_list
Output Format
cmd_list_inner
The actual implementation moved here to get the listed elements separately to be used in desktop and server
format_size
Format size in human readable form, and shows the small changes.
format_timestamp
Formats the timestamp with “%Y-%m-%d %H:%M:%S” if there is Some, or returns a corresponding string of spaces.