refactor: remove --encoding flag from list/export commands
The auto-detection mode (encodeJsonEntry) is always correct — it uses text for valid UTF-8 and base64 for binary data. The explicit base64 and text modes added no practical value and had zero test coverage.
This commit is contained in:
parent
08025903ad
commit
2c9ecd7caf
4 changed files with 3 additions and 47 deletions
2
testdata/help__dump__ok.ct
vendored
2
testdata/help__dump__ok.ct
vendored
|
|
@ -9,7 +9,6 @@ Aliases:
|
|||
export, dump
|
||||
|
||||
Flags:
|
||||
-e, --encoding string value encoding: auto, base64, or text (default "auto")
|
||||
-g, --glob strings Filter keys with glob pattern (repeatable)
|
||||
--glob-sep string Characters treated as separators for globbing (default "/-_.@: ")
|
||||
-h, --help help for export
|
||||
|
|
@ -22,7 +21,6 @@ Aliases:
|
|||
export, dump
|
||||
|
||||
Flags:
|
||||
-e, --encoding string value encoding: auto, base64, or text (default "auto")
|
||||
-g, --glob strings Filter keys with glob pattern (repeatable)
|
||||
--glob-sep string Characters treated as separators for globbing (default "/-_.@: ")
|
||||
-h, --help help for export
|
||||
|
|
|
|||
2
testdata/help__list__ok.ct
vendored
2
testdata/help__list__ok.ct
vendored
|
|
@ -10,7 +10,6 @@ Aliases:
|
|||
|
||||
Flags:
|
||||
-b, --binary include binary data in text output
|
||||
-e, --encoding string value encoding for ndjson format: auto, base64, or text (default "auto")
|
||||
-o, --format format output format (table|tsv|csv|markdown|html|ndjson) (default table)
|
||||
-g, --glob strings Filter keys with glob pattern (repeatable)
|
||||
--glob-sep string Characters treated as separators for globbing (default "/-_.@: ")
|
||||
|
|
@ -29,7 +28,6 @@ Aliases:
|
|||
|
||||
Flags:
|
||||
-b, --binary include binary data in text output
|
||||
-e, --encoding string value encoding for ndjson format: auto, base64, or text (default "auto")
|
||||
-o, --format format output format (table|tsv|csv|markdown|html|ndjson) (default table)
|
||||
-g, --glob strings Filter keys with glob pattern (repeatable)
|
||||
--glob-sep string Characters treated as separators for globbing (default "/-_.@: ")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue