Commit Graph

859 Commits

Author SHA1 Message Date
Ivan Habunek bbb5658781
Overhaul output to use click 2023-12-05 11:55:09 +01:00
Ivan Habunek e89cc6d590
Load command defaults from settings 2023-12-05 10:56:28 +01:00
Ivan Habunek d91f3477a8
Simplify main
No need to handle this stuff here
2023-12-05 10:45:18 +01:00
Ivan Habunek 78f994c0f1
Make toot instance work with instance domain name 2023-12-05 10:18:34 +01:00
Ivan Habunek b539c933ef
Respect --no-color 2023-12-05 09:59:40 +01:00
Ivan Habunek a653b557b4
Fix formatting 2023-12-05 09:25:02 +01:00
Ivan Habunek a8aeb32e18
Fix typing not to break older python versions 2023-12-05 09:15:39 +01:00
Ivan Habunek b9aae37e7d
Limit test files
...so that things from bundle are not picked up by mistake
2023-12-05 08:58:31 +01:00
Ivan Habunek 05dbd7bb57
Fix bug in media upload 2023-12-05 08:58:18 +01:00
Ivan Habunek b85daabb9d
Add missing package to discovery 2023-12-05 08:52:12 +01:00
Ivan Habunek e8dac36de3
Add `make bundle` for creating a pyz bundle 2023-12-05 08:52:07 +01:00
Ivan Habunek 24866bd4e4
Improve types 2023-12-05 08:15:27 +01:00
Ivan Habunek b9d0c1f7c2
Delete unused code 2023-12-04 18:46:45 +01:00
Ivan Habunek eaaa14cfc2
Use click.echo to output text 2023-12-04 18:45:40 +01:00
Ivan Habunek 452b98d2ad
Delete old command implementations 2023-12-04 17:51:06 +01:00
Ivan Habunek 4dfab69f3b
Add tui command 2023-12-03 13:53:52 +01:00
Ivan Habunek 3947b28de5
Add upload command 2023-12-03 13:45:24 +01:00
Ivan Habunek 84396fefc2
Improve variable naming 2023-12-03 13:32:51 +01:00
Ivan Habunek 2429d9f751
Migrate timeline commands 2023-12-03 13:29:31 +01:00
Ivan Habunek 69a11f3569
Remove old mock tests
These will be replaced by simpler and more useful integration tests.
2023-12-02 11:10:36 +01:00
Ivan Habunek d8c7084678
Migrate auth commands 2023-11-30 20:12:04 +01:00
Ivan Habunek 696a9dcc2e
Add type hints for App and User 2023-11-30 20:10:19 +01:00
Ivan Habunek e5c8fc4f77
Extend instance tests 2023-11-30 20:08:59 +01:00
Ivan Habunek 6c9b939175
Better test file name 2023-11-30 12:12:41 +01:00
Ivan Habunek 16e28d02c6
Fix getting the instance domain name
This used to return 3000 when running locally on localhost:3000
2023-11-30 11:58:57 +01:00
Ivan Habunek 5d9ee44cec
Migrate list commands 2023-11-29 12:11:41 +01:00
Ivan Habunek c0eb76751f
Migrate update_account command 2023-11-28 16:56:53 +01:00
Ivan Habunek 3dc5d35751
Migrate account commands 2023-11-28 14:05:44 +01:00
Ivan Habunek 51fcd60eb5
Migrate status commands 2023-11-28 12:26:08 +01:00
Ivan Habunek d6678e0498
Migrate post command 2023-11-28 11:53:43 +01:00
Ivan Habunek 096ec09684
Add toot --version 2023-11-28 10:13:20 +01:00
Ivan Habunek 9ecfa79db8
Setup click, migrate read commands 2023-11-28 10:13:05 +01:00
Ivan Habunek 1c5abb8419
Improve from_dict performance by caching fields 2023-11-26 09:16:21 +01:00
Ivan Habunek 48d9caef05
Improve typing in wcwidth module 2023-11-24 09:52:41 +01:00
Ivan Habunek 509afd16a8
Add release date 2023-11-23 11:34:14 +01:00
Ivan Habunek a6bbe97332
Add changelog, bump version 2023-11-22 08:50:17 +01:00
Ivan Habunek 7929919ffc
Add --json option to update_account 2023-11-22 08:41:15 +01:00
Ivan Habunek e961bd696d
Make account optional in following and followers 2023-11-22 08:22:21 +01:00
Ivan Habunek 443f9445b1
Add --json option to account commands 2023-11-21 18:16:37 +01:00
Ivan Habunek 016ae25569
Add --json option to various status commands 2023-11-21 16:51:02 +01:00
Ivan Habunek 4203e8d313
Dedupe duplicate function 2023-11-21 16:51:02 +01:00
Ivan Habunek 7793d4499a
Add --json option to post command 2023-11-21 16:51:02 +01:00
Ivan Habunek 3530553a06
Add --json option to status and thread commands 2023-11-21 16:51:02 +01:00
Ivan Habunek ae7a36b8d8
Add --json option to search command 2023-11-21 16:50:55 +01:00
Ivan Habunek 0c37716de1
Add --json option to instance command 2023-11-21 16:50:19 +01:00
Ivan Habunek 57be6beae8
Log request exceptions 2023-11-21 16:50:19 +01:00
Ivan Habunek 9664d71b57
Make get_instance return the response instead of json 2023-11-21 16:50:19 +01:00
Ivan Habunek 3f680312c6
Remove monkeypatched auth tests
Not very useful, tested in integration tests.
2023-11-21 16:50:19 +01:00
Ivan Habunek 45962b27c3
Fix search sending type=None if not specified 2023-11-21 16:48:12 +01:00
Ivan Habunek 540851713c
Remove travis config 2023-11-21 16:48:11 +01:00