feat: Add flag to list command to support index like output

This commit is contained in:
Cristian 2020-08-19 12:32:25 -05:00 committed by Cristian Vargas
parent be57db1369
commit aab8f96520
5 changed files with 43 additions and 4 deletions

View file

@ -46,6 +46,11 @@ def main(args: Optional[List[str]]=None, stdin: Optional[IO]=None, pwd: Optional
action='store_true',
help="Print the output in JSON format with all columns included.",
)
parser.add_argument(
'--index',
action='store_true',
help='Include the index additional structures'
)
parser.add_argument(
'--sort', #'-s',
type=str,
@ -112,6 +117,7 @@ def main(args: Optional[List[str]]=None, stdin: Optional[IO]=None, pwd: Optional
sort=command.sort,
csv=command.csv,
json=command.json,
index=command.index,
out_dir=pwd or OUTPUT_DIR,
)
raise SystemExit(not matching_folders)