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
| -path | set the path to the credentials file | . ||
45
+
| -style | set the style of the decrypted credentials file |dotenv | dotenv or yaml |
46
+
| -gitignore | path to the gitignore file. the key file will be added here, if given |||
47
47
48
48
This will create a key file `{environment}.key` and an encrypted credentials file `{environment}.enc` in the current directory. The environment name is optional and defaults to `dev`, but can be set to anything else with the `-env` flag.
| -path | set the path to the credentials file | . ||
62
+
| -editor | set the editor to use | vim | vim, nano, vi |
63
+
| -style | set the style of the decrypted credentials file |dotenv | dotenv or yaml |
64
64
65
65
This will create a temporary file, decrypt the credentials into it, and open it in your editor. The editor defaults to `vim`, but can be also set to `nano` or `vi` with the `-editor` flag. The temporary file is destroyed after each save, and the encrypted credentials file is updated with the new content.
66
66
@@ -85,7 +85,7 @@ func main() {
85
85
varconfig Config
86
86
87
87
s:= sicher.New("dev", ".")
88
-
s.SetEnvStyle("yaml") // default is basic
88
+
s.SetEnvStyle("yaml") // default is dotenv
89
89
err:= s.LoadEnv("", &cfg)
90
90
if err != nil {
91
91
fmt.Println(err)
@@ -105,7 +105,7 @@ The `LoadEnv` function will load the credentials from the encrypted file `{envir
105
105
106
106
All env files should be in the format like the example below:
0 commit comments