mirror of
https://github.com/rclone/rclone.git
synced 2025-06-03 18:53:16 +08:00
fs: Add global flag '--color' to control terminal colors
* fs: add TerminalColorMode type * fs: add new config(flags) for TerminalColorMode * lib/terminal: use TerminalColorMode to determine how to handle colors * Add documentation for '--terminal-color-mode' * tree: remove obsolete --color replaced by global --color This changes the default behaviour of tree. It now displays colors by default instead of only displaying them when the flag -C/--color was active. Old behaviour (no color) can be achieved by setting --color to 'never'. Fixes: #6604
This commit is contained in:
@ -48,7 +48,6 @@ rclone tree remote:path [flags]
|
||||
|
||||
```
|
||||
-a, --all All files are listed (list . files too)
|
||||
-C, --color Turn colorization on always
|
||||
-d, --dirs-only List directories only
|
||||
--dirsfirst List directories before files (-U disables)
|
||||
--full-path Print the full path prefix for each file
|
||||
|
Reference in New Issue
Block a user