Support non-interactive `./config.sh remove`
See original GitHub issueDescribe the enhancement
I use Terraform to (de)comission runners. I use a bash script on runner Virtual Machine in order to manage lifecyle. However, its seems the ./config.sh remove
has no non-interactive capabilities.
Using ./config.sh remove "${token}"
or ./config.sh remove <<<"${token}"
always prompting for token.
Code Snippet N/A
Additional information It would also be nice for a runner to be able to unregister itself without requiring a Github Personal Acces Token or a registration token. I suppose API is out-of-scope of this repository ? Can you lead me to appropriate URL for this RFE. Thank you!
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top Results From Across the Web
Enable non interactive configuration · Issue #221
Right now, the only way to solve the problem is to use expect . I'd post a sample configuration script here, but there...
Read more >Can an interactive shell become non-interactive or vice ...
Running set +i in an interactive Bash shell causes 'i' to be removed from the contents of $- . The question is: Does...
Read more >Linux rm non-interactive command
Unfortunately, I always get asked for EACH single file if I want to delete this because it is write-protected. Is there a way...
Read more >Disable .zshenv output for non-interactive shell
I added: if [[ ! -o interactive ]]; then exec 1>&- exec 1<>/dev/null fi. at the top of my .zshenv file to close...
Read more >DEBIAN_FRONTEND environment variable - apt
By running the install command with DEBIAN_FRONTEND=noninteractive these interactive xprompts are disabled. Share.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @logan-mauzaize-saagie, Have you tried with this command:
./config.sh remove --token TOKEN_VALUE
? That should work properly, so just let me know if everything went well.You’re welcome @logan-mauzaize-saagie! I’ll consult with the rest of the team, so we’ll change the help message if everyone agrees.