NRLMMD-GEOIPS / geoips

Main Geolocated Information Processing System code base with basic functionality enabled.
https://nrlmmd-geoips.github.io/geoips/
Other
13 stars 10 forks source link

CLI: Reduce number of command layers where possible and appropriate #576

Open jsolbrig opened 1 month ago

jsolbrig commented 1 month ago

Blocking issues

This is likely blocked by #573 or vice versa.

Requested Update

Description

There are several locations where the CLI is overly verbose because an extra command level is required. Here is a non-exhaustive list of examples:

We should find all instances where we can remove an intermediate command and still have the CLI make sense grammatically. geoips list algorithms makes just as much sense as geoips list plugins algorithms. In some cases, this will require adding an additional command for listing everything. For example, if we remove geoips list plugins in favor of geoips list <interface_name> we might want to add geoips list all-plugins or something similar.

Note that the examples given here all relate to <interface_name>. There may be other examples of subcommands that can be moved upwards.

Background and Motivation

This will reduce verbosity and makes the CLI feel more natural. It is a bit more like Kubernetes which seems to be a well thought-out CLI.

Checklist for Completion