Skip to content

feat(project): add view command for project member - #839

Open
vishnukothakapu wants to merge 1 commit into
goharbor:mainfrom
vishnukothakapu:feat/project-member-view
Open

feat(project): add view command for project member#839
vishnukothakapu wants to merge 1 commit into
goharbor:mainfrom
vishnukothakapu:feat/project-member-view

Conversation

@vishnukothakapu

Copy link
Copy Markdown

Description

This pull request adds the harbor project member view command to the CLI.

Previously, the project member subcommand group was missing a view command, making it inconsistent with the rest of the CLI (which follows a standard CRUD+view pattern). Users who wanted to inspect a specific member had to run a list command and filter the output manually.

This PR leverages the already existing backend API handler and TUI view components to provide a dedicated command that supports interactive prompts, --wide outputs, and structured JSON/YAML outputs for scripting workflows.

Type of Change

Please select the relevant type.

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

Changes

  • Created cmd/harbor/root/project/member/view.go to implement ViewMemberCommand().
  • Wired the new command into the project member subcommand group in cmd/harbor/root/project/member.go.
  • Regenerated CLI markdown documentation to include the new command's usage and help output.

@NucleoFusion

NucleoFusion commented Apr 26, 2026

Copy link
Copy Markdown
Contributor

How did you regenerate the docs? there shouldnt be deletions

@vishnukothakapu
vishnukothakapu force-pushed the feat/project-member-view branch 3 times, most recently from 23359ba to 5e4bb14 Compare April 26, 2026 06:32
@vishnukothakapu
vishnukothakapu force-pushed the feat/project-member-view branch from 5e4bb14 to fefaa94 Compare May 7, 2026 05:52
Signed-off-by: Vishnu Kothakapu <vishnukothakapu27@gmail.com>
@vishnukothakapu
vishnukothakapu force-pushed the feat/project-member-view branch from fefaa94 to 6694256 Compare August 11, 2026 19:30
@vishnukothakapu

vishnukothakapu commented Aug 11, 2026

Copy link
Copy Markdown
Author

How did you regenerate the docs? there shouldnt be deletions

@NucleoFusion The deletions happened because the docs are auto-generated from the Cobra command fields. I missed the Long description in view.go, which caused doc.go to remove the Synopsis sections.

I’ve pushed a fix, regenerated the docs, restored the deleted sections, and resolved the merge conflicts.

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.

[feature]: Add harbor project member view command

2 participants