Skip to content

Commit baa5e70

Browse files
authored
Merge pull request #514 from docker/feat/docs
feat(pass): documentation
2 parents 4dc2b45 + b2a5168 commit baa5e70

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

plugins/pass/commands/rm.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ func RmCommand(kc store.Store) *cobra.Command {
3838
Aliases: []string{"delete", "erase", "remove"},
3939
Short: "Remove secrets from local keychain.",
4040
Long: "Removes one or more named secrets from the local OS keychain.\nUse --all to remove every stored secret at once.",
41-
Example: `# Remove a specific secret:
41+
Example: `### Remove a specific secret:
4242
docker pass rm GH_TOKEN
4343
44-
# Remove multiple secrets:
44+
### Remove multiple secrets:
4545
docker pass rm GH_TOKEN NPM_TOKEN
4646
47-
# Remove all secrets:
47+
### Remove all secrets:
4848
docker pass rm --all`,
4949
RunE: func(cmd *cobra.Command, args []string) error {
5050
idList, err := validateArgs(args, opts)

plugins/pass/commands/set.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ import (
3030
)
3131

3232
const setExample = `
33-
# Set a secret:
33+
### Set a secret:
3434
docker pass set POSTGRES_PASSWORD=my-secret-password
3535
36-
# Or pass the secret via STDIN:
36+
### Or pass the secret via STDIN:
3737
echo my-secret-password > pwd.txt
3838
cat pwd.txt | docker pass set POSTGRES_PASSWORD
3939
40-
# Set a secret with metadata:
40+
### Set a secret with metadata:
4141
docker pass set POSTGRES_PASSWORD=my-secret-password --metadata owner=alice --metadata expiry=2027-03-01
4242
43-
# Or pass a JSON payload with secret and metadata via STDIN:
43+
### Or pass a JSON payload with secret and metadata via STDIN:
4444
echo '{"secret":"my-secret-password","metadata":{"owner":"alice"}}' | docker pass set POSTGRES_PASSWORD
4545
`
4646

0 commit comments

Comments
 (0)