Commit Graph

15 Commits

Author SHA1 Message Date
Ivan Habunek eaaa14cfc2
Use click.echo to output text 2023-12-04 18:45:40 +01:00
Ivan Habunek d8c7084678
Migrate auth commands 2023-11-30 20:12:04 +01:00
Ivan Habunek d4f8acb3ce
Resolve circular import by moving get_config_dir 2023-06-28 14:46:35 +02:00
Daniel Schwarz 01afbe1f2f
If toot activate is invoked without an account, show list of accounts 2023-06-22 11:30:43 +02:00
Denis Laxalde 949b5552ca
Sort keys when saving JSON config
This helps keeping changes minimal when rewritting from the program.
2020-05-11 13:20:08 +02:00
Ivan Habunek 5343319333
Improve config dir location
On Windows store config in roaming appdata.
2019-09-08 15:06:35 +02:00
Ivan Habunek 130ef9a608 Remove legacy configuration file handling 2019-09-08 14:36:37 +02:00
Ivan Habunek 73ba70eb83
Create config file with 0600 permissions
It contains secrets and should not be readable by others.

fixes #109
2019-08-27 13:20:22 +02:00
Ivan Habunek 05a06acf8e
Create config folder if it does not exist
fixes #40
2018-01-15 23:14:20 +01:00
Ivan Habunek 455e531194
Respect XDG_CONFIG_HOME env variable
to locate configuration home directory.

fixes #12
2018-01-14 15:29:34 +01:00
Ivan Habunek 6a3c877270
Reimplement configuration to allow multiple logins
The configuration is now stored in a single json encoded file instead of
separate files.
2018-01-02 12:24:32 +01:00
Ivan Habunek 3f44d560c8
Store access tokens for multiple instances
This makes it so an app is created only once for each instance, instead
of being re-created on each login. Prevents accumulations of authroized
apps in https://mastodon.social/oauth/authorized_applications
2017-04-18 16:16:24 +02:00
Ivan Habunek d21e45899c
Add coding directive 2017-04-15 14:53:08 +02:00
Ivan Habunek 26be88aed6
Fixes for py3 2017-04-12 17:12:47 +02:00
Ivan Habunek 40a0739227
Initial commit 2017-04-12 16:43:30 +02:00