Skip to content

fix(replication): support positional log arguments#940

Open
rambhardwajj wants to merge 1 commit into
goharbor:mainfrom
rambhardwajj:fix/replication-log-positional-args
Open

fix(replication): support positional log arguments#940
rambhardwajj wants to merge 1 commit into
goharbor:mainfrom
rambhardwajj:fix/replication-log-positional-args

Conversation

@rambhardwajj
Copy link
Copy Markdown

Description

This pull request fixes the replication log command by allowing positional EXECUTION_ID and TASK_ID arguments as documented.

Previously, the command rejected positional arguments due to incorrect Cobra validation (MaximumNArgs(0)), creating a mismatch between the CLI behavior and its documentation.

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation update
  • Chore / maintenance

Changes

  • Updated harbor replication log to accept the advertised positional EXECUTION_ID and TASK_ID arguments.
  • Added validation for invalid positional IDs and conflicts when IDs are provided both as flags and arguments.
  • Added focused tests for replication log positional argument handling.
  • Regenerated CLI Markdown and man page documentation with Dagger.

Signed-off-by: Ram Bhardwaj <rambhardwaj101000@gmail.com>
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.

[bug]: replication log rejects advertised positional execution and task IDs

1 participant