doc: update README
This commit is contained in:
parent
f6c735561a
commit
cddd1fc98a
1 changed files with 57 additions and 13 deletions
70
README.md
70
README.md
|
@ -14,24 +14,50 @@ gpm is passwords manager write in go and use AES-256 to encrypt the wallets
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
### Build
|
- Install [golang](https://golang.org/doc/install)
|
||||||
|
- Add `~/go/bin` in your `PATH`
|
||||||
Download the sources and build
|
- Download and build
|
||||||
|
|
||||||
```text
|
```text
|
||||||
git clone https://git.yaegashi.fr/nishiki/gpm.git
|
go get git.yaegashi.fr/nishiki/gpm/cmd/gpm
|
||||||
cd gpm
|
|
||||||
go build -o bin/gpm src/*.go
|
|
||||||
```
|
|
||||||
|
|
||||||
Copy the binary in PATH:
|
|
||||||
|
|
||||||
```text
|
|
||||||
sudo cp bin/gpm /usr/local/bin/gpm
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## How to use
|
## How to use
|
||||||
|
|
||||||
|
### First steps
|
||||||
|
|
||||||
|
- Add new entry `gpm -add`
|
||||||
|
|
||||||
|
```text
|
||||||
|
Enter the passphrase to unlock the wallet:
|
||||||
|
Enter the name: Test
|
||||||
|
Enter the group: MyGroup
|
||||||
|
Enter the URI: http://localhost
|
||||||
|
Enter the username: lastname
|
||||||
|
Enter the new password:
|
||||||
|
Enter the OTP key:
|
||||||
|
Enter a comment: My first entry
|
||||||
|
the entry has been added
|
||||||
|
```
|
||||||
|
|
||||||
|
- Search and copy `gpm -copy`
|
||||||
|
|
||||||
|
```text
|
||||||
|
Enter the passphrase to unlock the wallet:
|
||||||
|
|
||||||
|
MyGroup
|
||||||
|
|
||||||
|
| NAME | URI | USER | OTP | COMMENT
|
||||||
|
----+------+------------------+----------+-----+-----------------
|
||||||
|
0 | Test | http://localhost | lastname | X | My first entry
|
||||||
|
|
||||||
|
select one action: p
|
||||||
|
select one action: l
|
||||||
|
select one action: q
|
||||||
|
```
|
||||||
|
|
||||||
|
### All options
|
||||||
|
|
||||||
```text
|
```text
|
||||||
gpm -help
|
gpm -help
|
||||||
-add
|
-add
|
||||||
|
@ -42,16 +68,34 @@ gpm -help
|
||||||
enter an copy mode for an entry
|
enter an copy mode for an entry
|
||||||
-delete
|
-delete
|
||||||
delete an entry
|
delete an entry
|
||||||
|
-digit
|
||||||
|
use digit to generate a random password
|
||||||
|
-export
|
||||||
|
export a wallet in json format
|
||||||
-group string
|
-group string
|
||||||
search the entries in this group
|
search the entries in this group
|
||||||
-help
|
-help
|
||||||
print this help message
|
print this help message
|
||||||
|
-import string
|
||||||
|
import entries from a json file
|
||||||
|
-length int
|
||||||
|
specify the password length (default 16)
|
||||||
|
-letter
|
||||||
|
use letter to generate a random password
|
||||||
-list
|
-list
|
||||||
list the entries in a wallet
|
list the entries in a wallet
|
||||||
|
-password
|
||||||
|
generate and print a random password
|
||||||
-pattern string
|
-pattern string
|
||||||
search the entries with this pattern
|
search the entries with this pattern
|
||||||
|
-random
|
||||||
|
generate a random password for a new entry or an update
|
||||||
|
-special
|
||||||
|
use special chars to generate a random password
|
||||||
-update
|
-update
|
||||||
update an entry
|
update an entry
|
||||||
|
-wallet string
|
||||||
|
specify the wallet
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
Loading…
Reference in a new issue