Skip to content

docs: add Long description and examples to key subcommands#1351

Open
ogulcanaydogan wants to merge 1 commit into
notaryproject:mainfrom
ogulcanaydogan:docs/key-subcommand-long
Open

docs: add Long description and examples to key subcommands#1351
ogulcanaydogan wants to merge 1 commit into
notaryproject:mainfrom
ogulcanaydogan:docs/key-subcommand-long

Conversation

@ogulcanaydogan

Copy link
Copy Markdown
Contributor

The four key subcommands (add, update, list, delete) had only a Short: description. Add Long: with usage examples to each, following the style used by other notation commands.

Files changed:

  • cmd/notation/key.go: add Long: to keyAddCommand, keyUpdateCommand, keyListCommand, keyDeleteCommand

The four key subcommands (add, update, list, delete) had only a Short:
description. Add Long: with usage examples to each, matching the style
of other notation commands (backtick string, Example - <action>: prefix).

Signed-off-by: Ogulcan Aydogan <ogulcanaydogan@hotmail.com>
Copilot AI review requested due to automatic review settings June 11, 2026 20:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds richer CLI help text for notation key subcommands by providing Long descriptions with concrete usage examples.

Changes:

  • Add multi-line Long help text for key add
  • Add multi-line Long help text for key update, key list, and key delete

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cmd/notation/key.go
Comment on lines +92 to +99
Long: `Add a key to Notation signing key list. The key must be managed by a signing plugin.

Example - Add a key with a signing plugin:
notation key add --plugin <plugin_name> --id <key_id> <key_name>

Example - Add a key and set it as the default signing key:
notation key add --plugin <plugin_name> --id <key_id> --default <key_name>
`,
@codecov

codecov Bot commented Jun 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.24%. Comparing base (51ff5ec) to head (53be1b6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1351      +/-   ##
==========================================
+ Coverage   79.09%   79.24%   +0.14%     
==========================================
  Files          68       68              
  Lines        3076     3098      +22     
==========================================
+ Hits         2433     2455      +22     
  Misses        436      436              
  Partials      207      207              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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