1
0
mirror of synced 2026-02-06 19:05:55 +00:00
Files
flux2/cmd/flux
Max Jonas Werner ffcd7d8059 feat: prompt for access tokens in 'bootstrap' command
This change adds functionality to both, `bootstrap github` and
`bootstrap gitlab` to prompt the user for the personal access tokens
if those can't be derived from the shell environment. Echoing is
turned off for better privacy.

Instead of having to interactively type the token or manually paste it
from the clipboard, users can also pipe it to Flux which comes in
handy e.g. when executing Flux remotely over an SSH connection:

```
$ echo 'asdf' | flux bootstrap github
```

Otherwise, Flux will prompt the user:

```
$ flux bootstrap github
Please type your GitHub personal access token:
```

closes #2011

Signed-off-by: Max Jonas Werner <mail@makk.es>
2021-11-07 15:09:30 +01:00
..
2021-11-01 10:46:07 +01:00
2021-10-08 19:35:39 +02:00
2021-10-14 16:14:28 +03:00
2021-09-18 17:27:47 +09:00
2021-06-28 16:20:05 +01:00
2021-03-26 10:20:42 +01:00
2020-10-29 16:25:16 +01:00
2021-04-07 16:40:16 +01:00
2020-10-29 16:25:16 +01:00
2021-11-01 10:46:07 +01:00
2021-11-01 10:46:07 +01:00
2021-09-18 17:27:47 +09:00
2021-10-14 16:14:28 +03:00
2021-10-14 16:14:28 +03:00
2021-10-22 12:34:36 +01:00
2020-10-29 16:25:16 +01:00
2020-11-26 16:40:54 +02:00
2021-10-13 16:25:15 +01:00
2020-11-26 16:22:47 +02:00
2021-04-28 10:44:51 +01:00
2021-10-25 13:45:13 +03:00
2021-10-05 10:29:00 +01:00
2021-10-05 10:29:00 +01:00