Skip to content

use subcommands in CLI #77

@ricardogsilva

Description

@ricardogsilva

As GeoServer has a large REST API and since we may also be adding additional features in the future, let's organize our CLI client in a hierarchical way, grouping commands in some logical sense. Perhaps starting out by mimicking the sections that exist on the GeoServer UI (layers, stores, workspaces, etc.).

We can use typer subcommands for this. The end result would look something like this:

# main help would show a list of subcommands
gsx --help

 _Commands__________________________________________
| layer               Layer management commands           
| store               Store management commands            
| workspace           Workspace management commands  
|____________________________________________________
# subcommand help shows a list of commands
gsx layer --help

 _Commands__________________________________________
| add                Add a new layer           
| edit               Edit existing layer            
| delete             Delete existing layer  
|____________________________________________________

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In review

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions