Skip to content

Enhance CLI output when listing sources #35

@shard77

Description

@shard77

Currently, we don't display all the information we have when printing out sources with the following:

malbox-cli download source list would print out :

Available Sources

Family Linux:
  • Ubuntu (1 releases)

Family Microsoft Windows:
  • Windows (1 releases)

Family wintest:
  • wintest (1 releases)

Using the -d / --detailed flag:

Available Sources

Family Linux:
  ID: linux
  Description: Linux operating systems
  Platform: Linux
  Tags: linux
  Editions: 1
  • Ubuntu (1 releases)

Family Microsoft Windows:
  ID: windows
  Description: Windows operating systems
  Platform: Windows
  Tags: windows
  Editions: 1
  • Windows (1 releases)

Family wintest:
  ID: wintest
  Description: wintest sources
  Platform: Linux
  Tags: wintest
  Editions: 1
  • wintest (1 releases)

For reference, the available flags:

Usage: malbox-cli downloader source list [OPTIONS]

Options:
  -f, --family <FAMILY>    
  -e, --edition <EDITION>  
  -v, --version <VERSION>  
  -d, --detailed           
      --format <FORMAT>    [default: text] [possible values: text, json, yaml]
  -h, --help               Print help

As seen, the information that is printed out isn't exhaustive, even with the -d flag, we should print out all available information.
See --output json for reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions