Skip to content

Commit

Permalink
Update add example
Browse files Browse the repository at this point in the history
  • Loading branch information
sschmid committed Sep 18, 2024
1 parent 3d1e18e commit 08a288c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,11 @@ pw init ~/secrets/ # end with `/` to create a directory for GnuPG
## Add entry with name and optional account

```
pw add <name> [<account>] add entry (leave password empty to generate one)
pw add [<name>] [<account>] add entry (leave empty to generate password)
```

```bash
pw add # add interactively
pw add GitHub
pw add Google [email protected]
pw add Google [email protected]
Expand Down
4 changes: 2 additions & 2 deletions src/pw
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ commands:
[-p] no command copy (or print) password using fuzzy finder
[-p] <name> [<account>] copy (or print) password
init <keychain> create keychain
add <name> [<account>] add entry (leave password empty to generate one)
edit [<name>] [<account>] edit entry (leave password empty to generate one)
add [<name>] [<account>] add entry (leave empty to generate password)
edit [<name>] [<account>] edit entry (leave empty to generate password)
rm [<name>] [<account>] remove entry
ls list all entries
gen [<length>] [<class>] generate password with given length and character class (default: 35 [:graph:])
Expand Down

0 comments on commit 08a288c

Please sign in to comment.