Skip to content

Create stat command #3

@nmassey001

Description

@nmassey001

Create a command that will list all the requests for a user and / or group workspace.

Use click to create the command line interface.

Follow the protocol of writing a separate function for:

  1. Interpret the command line arguments
  2. Make the request to NLDS
  3. Process the request return
  4. Print the processed results

1 Is just writing the click functionality at the top of the function
2 Has already been written: get_request_status in publishers/status.py
3 Means filtering the results based on the return values: e.g. filter by start and end date, or file version / date
4 Should be able to print to the terminal or provide a JSON dump of the filtered results.

It would be good to have some common print function, I think.

See the work you already did in nlds_utils/nlds_monitor

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions