You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/vault/README.md
-16Lines changed: 0 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,22 +9,6 @@ With proper go installation, run the command `go install -v github.com/231tr0n/v
9
9
10
10
## Usage
11
11
Use the flag `-help` for knowing all the options of the vault.
12
-
```
13
-
-change
14
-
Changes the vault password
15
-
-clear
16
-
Clears all the passwords in the vault
17
-
-delete string
18
-
Deletes the password in the vault
19
-
-generate int
20
-
Generates a new random password of length given
21
-
-get string
22
-
Gets the password from the vault
23
-
-list
24
-
Lists all the passwords in the vault
25
-
-put string
26
-
Puts the password in the vault
27
-
```
28
12
**Note:** You have to set the password using the `-change` argument initially since it is not set. Give an empty password when prompted for vault's old password.
// Parse parses the command line arguments and runs the respective functions accordingly.
42
46
funcParse() error {
43
-
change:=flag.Bool("change", false, "Changes the vault password")
44
-
list:=flag.Bool("list", false, "Lists all the passwords in the vault")
45
-
clear:=flag.Bool("clear", false, "Clears all the passwords in the vault")
46
-
get:=flag.String("get", "", "Gets the password from the vault")
47
-
put:=flag.String("put", "", "Puts the password in the vault")
48
-
del:=flag.String("delete", "", "Deletes the password in the vault")
49
-
generate:=flag.Int("generate", 0, "Generates a new random password of length given")
47
+
change:=flag.Bool("change", false, "Changes the vault password.")
48
+
list:=flag.Bool("list", false, "Lists all the password names in the vault.")
49
+
listAll:=flag.Bool("list-all", false, "Lists all the passwords with names(dangerous) in the vault.")
50
+
clear:=flag.Bool("clear", false, "Clears all the passwords in the vault.")
51
+
get:=flag.String("get", "", "Gets the password from the vault.")
52
+
put:=flag.String("put", "", "Puts the password in the vault.")
53
+
del:=flag.String("delete", "", "Deletes the password in the vault.")
54
+
//nolint
55
+
generate:=flag.Int("generate", 0, "Generates a new random password of length given. If this flag is passed along with put flag, it generates a random password and stores that in the vault.")
0 commit comments