Skip to content

Commit

Permalink
fix(tests): Update test output for archive inspection help
Browse files Browse the repository at this point in the history
  • Loading branch information
taminob committed Mar 28, 2024
1 parent b3245aa commit a79f904
Show file tree
Hide file tree
Showing 8 changed files with 87 additions and 4 deletions.
2 changes: 2 additions & 0 deletions tests/cmd/long_time_style_custom_non_recent_empty_nix.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
thread 'main' panicked at 'Custom timestamp format is empty, please supply a chrono format string after the plus sign.', src/options/view.rs:350:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2 changes: 2 additions & 0 deletions tests/cmd/long_time_style_custom_non_recent_none_nix.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
thread 'main' panicked at 'Custom timestamp format is empty, please supply a chrono format string after the plus sign.', src/options/view.rs:348:47
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2 changes: 2 additions & 0 deletions tests/cmd/long_time_style_custom_recent_empty_nix.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
thread 'main' panicked at 'Custom timestamp format for recent files is empty, please supply a chrono format string at the second line.', src/options/view.rs:364:25
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
thread 'main' panicked at 'Custom timestamp format is empty, please supply a chrono format string after the plus sign.', src/options/view.rs:347:21
thread 'main' panicked at 'Custom timestamp format is empty, please supply a chrono format string after the plus sign.', src/options/view.rs:350:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
thread 'main' panicked at 'Custom timestamp format is empty, please supply a chrono format string after the plus sign.', src/options/view.rs:345:47
thread 'main' panicked at 'Custom timestamp format is empty, please supply a chrono format string after the plus sign.', src/options/view.rs:348:47
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
2 changes: 1 addition & 1 deletion tests/gen/long_time_style_custom_recent_empty_nix.stderr
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
thread 'main' panicked at 'Custom timestamp format for recent files is empty, please supply a chrono format string at the second line.', src/options/view.rs:361:25
thread 'main' panicked at 'Custom timestamp format for recent files is empty, please supply a chrono format string at the second line.', src/options/view.rs:364:25
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
77 changes: 77 additions & 0 deletions tests/gen/ptest_2439b7d68089135b.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
Usage:
eza [options] [files...]

META OPTIONS
--help show list of command-line options
-v, --version show version of eza

DISPLAY OPTIONS
-1, --oneline display one entry per line
-l, --long display extended file metadata as a table
-G, --grid display entries as a grid (default)
-x, --across sort the grid across, rather than downwards
-R, --recurse recurse into directories
-T, --tree recurse into directories as a tree
-X, --dereference dereference symbolic links when displaying information
-F, --classify=WHEN display type indicator by file names (always, auto, never)
--colo[u]r=WHEN when to use terminal colours (always, auto, never)
--colo[u]r-scale highlight levels of 'field' distinctly(all, age, size)
--colo[u]r-scale-mode use gradient or fixed colors in --color-scale (fixed, gradient)
--icons=WHEN when to display icons (always, auto, never)
--no-quotes don't quote file names with spaces
--hyperlink display entries as hyperlinks
-w, --width COLS set screen width in columns
-q, --archive-inspection list content of archives (supported formats: tar)

FILTERING AND SORTING OPTIONS
-a, --all show hidden and 'dot' files. Use this twice to also
show the '.' and '..' directories
-A, --almost-all equivalent to --all; included for compatibility with `ls -A`
-d, --list-dirs list directories as files; don't list their contents
-L, --level DEPTH limit the depth of recursion
-r, --reverse reverse the sort order
-s, --sort SORT_FIELD which field to sort by
--group-directories-first list directories before other files
-D, --only-dirs list only directories
-f, --only-files list only files
-I, --ignore-glob GLOBS glob patterns (pipe-separated) of files to ignore
--git-ignore ignore files mentioned in '.gitignore'
Valid sort fields: name, Name, extension, Extension, size, type,
modified, accessed, created, inode, and none.
date, time, old, and new all refer to modified.

LONG VIEW OPTIONS
-b, --binary list file sizes with binary prefixes
-B, --bytes list file sizes in bytes, without any prefixes
-g, --group list each file's group
--smart-group only show group if it has a different name from owner
-h, --header add a header row to each column
-H, --links list each file's number of hard links
-i, --inode list each file's inode number
-m, --modified use the modified timestamp field
-M, --mounts show mount details (Linux and Mac only)
-n, --numeric list numeric user and group IDs
-O, --flags list file flags (Mac, BSD, and Windows only)
-S, --blocksize show size of allocated file system blocks
-t, --time FIELD which timestamp field to list (modified, accessed, created)
-u, --accessed use the accessed timestamp field
-U, --created use the created timestamp field
--changed use the changed timestamp field
--time-style how to format timestamps (default, iso, long-iso,
full-iso, relative, or a custom style '+<FORMAT>'
like '+%Y-%m-%d %H:%M')
--total-size show the size of a directory as the size of all
files and directories inside (unix only)
--no-permissions suppress the permissions field
-o, --octal-permissions list each file's permission in octal format
--no-filesize suppress the filesize field
--no-user suppress the user field
--no-time suppress the time field
--stdin read file names from stdin, one per line or other separator
specified in environment
--git list each file's Git status, if tracked or ignored
--no-git suppress Git status (always overrides --git,
--git-repos, --git-repos-no-status)
--git-repos list root of git-tree status
-@, --extended list each file's extended attributes and sizes
-Z, --context list each file's security context
2 changes: 1 addition & 1 deletion tests/ptests/ptest_2439b7d68089135b.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ DISPLAY OPTIONS
--hyperlink display entries as hyperlinks
--absolute display entries with their absolute path (on, follow, off)
-w, --width COLS set screen width in columns

-q, --archive-inspection list content of archives (supported formats: tar)

FILTERING AND SORTING OPTIONS
-a, --all show hidden and 'dot' files. Use this twice to also
Expand Down

0 comments on commit a79f904

Please sign in to comment.