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: README.md
+1-21Lines changed: 1 addition & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,7 @@ creates (for example) this string: `🏴🦑👹🦑🙉
147
147
148
148
### `update-or-create`
149
149
150
-
`psonoci env-vars update-or-create` updates or creates environment variable value by name with the supplied value. If there is no environment variable with that name a new one is created. If there are more than one with the same name, only the first will be updated.
150
+
`psonoci env-vars update-or-create` updates or creates environment variable value by name with the supplied value and then returns this value. If there is no environment variable with that name a new one is created. If there are more than one with the same name, only the first will be updated. If no new value is provided a random one will be created. The new value can be adjusted with `--password-length` and `-danger-password-allowed-chars`. Please see above.
151
151
152
152
## Config
153
153
@@ -280,26 +280,6 @@ I am not sure if `aarch64-apple-darwin` is also supported (I think it should wor
280
280
281
281
Download `psonoci` binary, make executable (`chmod +x psonoci`), and place into a directory which is part of your `$PATH`.
282
282
283
-
## Key Setup
284
-
285
-
TODO
286
-
287
-
<!-- ### Create API Key
288
-
289
-
1. Go to `Other -> API Keys` and click `Create new API Key`.
290
-
2. Name your API key and make sure neither `Secret Restriction?` nor `Allow insecure usage?` are activated. (see Image )
291
-
3. Click Create
292
-
4. In the API key overview click on the edit Icon for the newly created key
293
-
5. In this view you will see all secrets you need for the `psoco` config (see image 2)
294
-
295
-
#### Create API Key
296
-
297
-

298
-
299
-
#### View API Key
300
-
301
-
 -->
302
-
303
283
## License
304
284
305
285
[The MIT License](https://opensource.org/licenses/MIT)
about = "Update or create env var for a specific secret. Will always update the first secret with the specified name in the env var list"
274
+
about = "Update or create env var for a specific secret and then returns the value. Will always update the first secret with the specified name in the env var list. If no new value is supplied, a random value will be created"
266
275
)]
267
276
UpdateOrCreate{
268
277
#[structopt(
@@ -272,7 +281,11 @@ pub enum EnvVarsCommand {
272
281
secret_id:Uuid,
273
282
#[structopt(required = true, help = "The name of the env var")]
274
283
env_var_name:String,
275
-
#[structopt(required = true, help = "The value of the env var")]
276
-
env_var_value:String,
284
+
#[structopt(
285
+
help = "The value of the env var. If no value is provided, a random one will be created"
0 commit comments