-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add possibility to pass token via environment variable #62
Comments
Hi Lykos, this functionality is already implemented for the Line 102 in c827c9b
Maybe I missunderstood your request. Could you please clarify your use case and any errors that you may have encountered. |
That's great! However, for every other command (eg.
|
Alright, now I understand your request. I will have a look at this in due time. |
Thhanks for the request @Lykos153, this is on my personal "would be nice to have" list for a long time already. As you both figured out already we have it implemented in matrix subcommand but not on regular admin api commands. We should respect these rules and code this featur as similar as possible or even try to share code. |
I agree with you. To be consistent, I would suggest to use the |
Well it's not too easy I realize just now.... In that case I think it makes sense to have --token an option of synadm main command directly, and actually when we think about it, the synadm matrix subcommand should have that option directly as well. Changin that breaks existing behaviour but I think it would be worth it to streamline usability of both matrix and regular commands |
Still there would be one caveat with my proposal: The existing matrix login command would not make sense with that --token option and would just ignore it. Is that bad? I could live with it and would definitely prefer having one --token option for all matrix commands |
@JOJ0 I agree that it would be better to add the |
So it doesn't have to be stored on disk in plaintext but can be retrieved from eg.
pass
The text was updated successfully, but these errors were encountered: