-
Notifications
You must be signed in to change notification settings - Fork 11
feat(pass): documentation #514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,17 +30,17 @@ import ( | |
| ) | ||
|
|
||
| const setExample = ` | ||
| # Set a secret: | ||
| ### Set a secret: | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. LOW: Example section headers use Same issue as Consider reverting to |
||
| docker pass set POSTGRES_PASSWORD=my-secret-password | ||
|
|
||
| # Or pass the secret via STDIN: | ||
| ### Or pass the secret via STDIN: | ||
| echo my-secret-password > pwd.txt | ||
| cat pwd.txt | docker pass set POSTGRES_PASSWORD | ||
|
|
||
| # Set a secret with metadata: | ||
| ### Set a secret with metadata: | ||
| docker pass set POSTGRES_PASSWORD=my-secret-password --metadata owner=alice --metadata expiry=2027-03-01 | ||
|
|
||
| # Or pass a JSON payload with secret and metadata via STDIN: | ||
| ### Or pass a JSON payload with secret and metadata via STDIN: | ||
| echo '{"secret":"my-secret-password","metadata":{"owner":"alice"}}' | docker pass set POSTGRES_PASSWORD | ||
| ` | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOW: Example section headers use
###(Markdown heading) instead of conventional#(shell comment)Cobra does not render Markdown — the
Examplefield is printed verbatim to the terminal. Replacing# Remove a specific secret:with### Remove a specific secret:means users will see raw###syntax indocker pass rm --helpoutput.The
#prefix is both standard shell comment syntax and the de-facto Cobra/Docker CLI convention (used by Docker CLI, kubectl, and most Cobra-based tools). Consider reverting to#for consistent terminal UX.