Skip to content

feat(cli): add SDK commands for probe configuration templates - #27

Open
sempervent wants to merge 2 commits into
release/1.3.0from
feature/create-template
Open

feat(cli): add SDK commands for probe configuration templates#27
sempervent wants to merge 2 commits into
release/1.3.0from
feature/create-template

Conversation

@sempervent

Copy link
Copy Markdown
Contributor

Summary

Adds an opensampl sdk command group to make creating custom clock probe types easier.

  • Adds opensampl sdk template CONFIG_PATH to generate a pre-populated YAML configuration template.
  • Adds opensampl sdk create CONFIG_PATH for creating a probe scaffold from that configuration.
  • Preserves opensampl create CONFIG_PATH as a compatibility alias.
  • Prevents template generation from overwriting existing files.
  • Updates documentation and corrects the documented metadata_fields format.

Testing

  • Added CLI tests for template generation, configuration validation, overwrite protection, and command compatibility.
  • 83 non-integration tests pass.
  • Ruff checks pass.

@sempervent sempervent self-assigned this Jul 20, 2026
Comment on lines +30 to +35
metadata_fields:
- name: serial_number
type: Text
- name: firmware_version
- name: sample_rate_hz
type: Integer

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably leave this commented out too, so that users don't end up adding these two three random columns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants