HydrologicEngineeringCenter / HydrologicEngineeringCenter/cwms-cli

Add CLI command to create a rating

Open
#21 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
2
Forks
4
Avg merge
19h 59m
Merged PRs (30d)
3

Description

CLI Script

Other

Feature Proposal

Should we have a sub command called

cwms-cli ratings that allows for manipulation of the ratings endpoints?

If a user wants to create a new rating they can do this in CWMSVue, then update the description for the getUSGSRatings script.

But if we had something like

cwms-cli ratings create --rating-file=myrating.xml
And expose the other CDA endpoint params via CLI args

This could also sub class further to
cwms-cli ratings template ...args
or
cwms-cli ratings spec ..args

REDACTED relevant log output

Related Context or Links

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing getUSGSRatings script and the CWMS CDA ratings endpoints. The proposal describes a ratings create command accepting a rating file and endpoint parameters, with possible template and spec subcommands; done would mean the agreed CLI scope is implemented and usable.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.