You've already forked httpie-cli
mirror of
https://github.com/httpie/cli.git
synced 2025-08-10 22:42:05 +02:00
Add --sorted
Also add --no-(sorted|unsorted) to allow the documented resetting to default via --no-<option>.
This commit is contained in:
@@ -91,10 +91,13 @@ DEFAULT_FORMAT_OPTIONS = [
|
||||
'json.indent:4',
|
||||
'json.sort_keys:true',
|
||||
]
|
||||
UNSORTED_FORMAT_OPTIONS = [
|
||||
'headers.sort:false',
|
||||
'json.sort_keys:false',
|
||||
SORTED_FORMAT_OPTIONS = [
|
||||
'headers.sort:true',
|
||||
'json.sort_keys:true',
|
||||
]
|
||||
SORTED_FORMAT_OPTIONS_STRING = ','.join(SORTED_FORMAT_OPTIONS)
|
||||
UNSORTED_FORMAT_OPTIONS_STRING = ','.join(
|
||||
option.replace('true', 'false') for option in SORTED_FORMAT_OPTIONS)
|
||||
|
||||
# Defaults
|
||||
OUTPUT_OPTIONS_DEFAULT = OUT_RESP_HEAD + OUT_RESP_BODY
|
||||
|
Reference in New Issue
Block a user