ni / ni/measurement-plugin-python
Add list option in Measurement Client generator
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 21
- Forks
- 20
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 3
Description
Problem to Solve
It would be beneficial to view the list of registered measurements in the Measurement Plugin Client Generator. Please refer to this thread for more details.
Proposed Solution
-
Add a new option to
create_clientcommand.@optgroup.option( "-l", "--list-all-measurements", is_flag=True, help="Lists all registered measurements.", ) -
Use
get_all_registered_measurement_infoin _support.py to get the registered measurements from the Discovery Service._, measurement_display_names = get_all_registered_measurement_info(discovery_client) print("\nList of registered measurements:") for index, display_name in enumerate(measurement_display_names, start=1): print(f"{index}. {display_name}")
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the create_client command and the _support.py entry point for get_all_registered_measurement_info. Review how command options are defined and how the Discovery Service is accessed. Done means the new --list-all-measurements option lists registered measurement display names with their numbered output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100