Open evrose54 opened 2 weeks ago
Note: Once the updated documentation is actually up on GitHub.io the hyperlinked outputs of the tree will point towards the appropriate location in the documentation.
Could we format like this?
geoips tree
geoips config [install]
geoips get [family, interface, package, plugin]
geoips list [interface, interfaces, packages, plugins, scripts, test-datasets, unit-tests]
geoips run [single_source, data_fusion, config_based]
geoips test [linting, script]
geoips tree
geoips validate
Or does that mess up the docs links?
Reviewer Checklist
https://github.com/NRLMMD-GEOIPS/.github/blob/main/.github/review-template.md
Related Issues
fixes NRLMMD-GEOIPS/geoips#627
Testing Instructions
Run pytest -v ./tests/unit_tests/commandline/test_geoips_tree.py.
Summary
The GeoIPS CLI provides a variety of commands which aren't necessarily easily exposed via
geoips -h
. To improve this issue, we've added ageoips tree
command which exposes all GeoIPS CLI commands in a tree-like fashion. This way, we can expose all commands that are available via the GeoIPS CLI, and expose the depth in which these commands exist.By displaying the commands in a depthwise structure, users can understand what commands are available and how they are called.
If you just call
geoips tree
, you'll get the full command tree in a non-colored, verbose output.The output of running
geoips tree
is shown below.geoips tree
additionaly provides optional arguments to filter the output of this command. Shown below are these optional arguments and descriptions of what each argument does.--colored
geoips tree
might be a little hard to interpret. If you want the output ofgeoips tree
to be colored by depth, make sure to use the--colored
flag. (Defaults to False)--max_depth
--short_name
geoips tree
provides the full command string at each level. If you just want the literal command name and every level, make sure to provide this flag. (Defaults to False)Output