Skip to content

Add dataprov-add CLI tool for recording processing steps#6

Merged
fwrise merged 3 commits into
RI-SE:mainfrom
BastianHavers:feature/dataprov-add-cli
Apr 14, 2026
Merged

Add dataprov-add CLI tool for recording processing steps#6
fwrise merged 3 commits into
RI-SE:mainfrom
BastianHavers:feature/dataprov-add-cli

Conversation

@BastianHavers
Copy link
Copy Markdown
Contributor

Expose ProvenanceChain.add() as a CLI tool so users can record processing steps in shell scripts and pipelines without writing Python.

Changes:

  • dataprov/cli/addstep.py: new CLI module with full argument coverage of add()'s required and optional parameters, including --capture-agent, --capture-environment, --input-provenance-files (with 'none' sentinel), --drl, and -o / --overwrite for output control
  • pyproject.toml: register dataprov-add entry point
  • README.md: add dataprov-add to CLI Tools section and table of contents
  • tests/test_dataprov.py: add TestCLIAddStep with 15 tests covering basic usage, optional fields, multiple I/O, provenance file linking, output redirect, overwrite, agent/env capture, and error cases

Expose ProvenanceChain.add() as a CLI tool so users can record
processing steps in shell scripts and pipelines without writing Python.

Changes:
- dataprov/cli/addstep.py: new CLI module with full argument coverage
  of add()'s required and optional parameters, including --capture-agent,
  --capture-environment, --input-provenance-files (with 'none' sentinel),
  --drl, and -o / --overwrite for output control
- pyproject.toml: register dataprov-add entry point
- README.md: add dataprov-add to CLI Tools section and table of contents
- tests/test_dataprov.py: add TestCLIAddStep with 15 tests covering
  basic usage, optional fields, multiple I/O, provenance file linking,
  output redirect, overwrite, agent/env capture, and error cases

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@fwrise fwrise force-pushed the feature/dataprov-add-cli branch from 8aa8324 to 2c78031 Compare April 14, 2026 11:45
@fwrise fwrise merged commit 6b6f795 into RI-SE:main Apr 14, 2026
4 checks passed
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