Daniel Schwarz
481cf89e3a
cleanup to make flake8 happy
2023-12-18 22:30:34 -05:00
Daniel Schwarz
c3e715b46c
Merge branch 'master' into images
2023-12-18 21:47:57 -05:00
Ivan Habunek
59efff5abc
Use context manager to edit config
...
This simplies the code a bit and resolves some type hinting issues.
2023-12-17 09:42:09 +01:00
Ivan Habunek
1dac093be7
Add --json option to lists commands
2023-12-14 14:10:53 +01:00
Ivan Habunek
438a8ab206
Make instance work without logging in
2023-12-14 13:06:06 +01:00
Ivan Habunek
f72e4ba844
Move code from toot.tui.base to toot.tui
2023-12-14 11:35:52 +01:00
Ivan Habunek
2f3f686a00
Rework how app, user are passed to context
2023-12-14 10:11:09 +01:00
Ivan Habunek
164016481d
Replace lists commands with subcommands
2023-12-13 16:14:46 +01:00
Ivan Habunek
fab23b9069
Reorganize cli imports
...
The old way did not allow for having multiple commands of the same name
2023-12-13 15:00:47 +01:00
Ivan Habunek
381e3583ef
Add featured tag commands
2023-12-13 08:40:02 +01:00
Ivan Habunek
743dfd715e
Change toot tags
to toot tags followed
2023-12-13 08:40:02 +01:00
Ivan Habunek
c7e01c77f2
Add --json option to tag commands
2023-12-13 08:40:02 +01:00
Ivan Habunek
8e7a90e8da
Remove unused code
2023-12-07 10:23:05 +01:00
Ivan Habunek
bbb5658781
Overhaul output to use click
2023-12-05 11:55:09 +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
Daniel Schwarz
7a7f4d4679
Merge remote-tracking branch 'upstream/master' into images
2023-11-30 23:42:23 -05:00
Ivan Habunek
d8c7084678
Migrate auth commands
2023-11-30 20:12:04 +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
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
9ecfa79db8
Setup click, migrate read commands
2023-11-28 10:13:05 +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
0c37716de1
Add --json option to instance command
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
e9daaf6000
Fix warnings
2023-11-18 22:02:11 +01:00
Ivan Habunek
2c4f7e17c9
Add --json option to whoami command
2023-11-18 15:40:51 +01:00
Ivan Habunek
6cdba16fcf
Make verify_credentials return the http response
...
Required if we want to emit json without decoding it
2023-11-18 15:40:50 +01:00
Ivan Habunek
317840b019
Merge pull request #415 from ihabunek/danschwarz-richtext3
...
Add support for rich text
2023-11-18 15:40:35 +01:00
Daniel Schwarz
732b9feed5
Added test for toot.utils.urlencode_url(...)
2023-11-16 20:24:53 -05:00
Ivan Habunek
414d9e8ff2
Start testing richtext
2023-11-16 12:29:37 +01:00
Sandra Snan
b344bb3bdb
Add tests for reading dates
2023-09-24 08:09:06 +02:00
Ivan Habunek
afd349f1ab
Remove the monochrome palette
...
Monochrome colors should be defined as the third color in each tuple
instead.
In monochrome mode it's not possible to set the background so all
highlights can only be done using bold, italics, underline...
2023-07-08 12:33:34 +02:00
Daniel Schwarz
28a3343761
Added sanity check tests to ensure PALETTE and MONO_PALETTE match
...
And fixed a bug uncovered by the above tests :)
2023-07-07 18:12:38 -04:00
Daniel Schwarz
8d1a562d1d
Images are now cached in memory (10MB) with a LRU eviction policy
2023-07-07 14:05:18 +02:00
Ivan Habunek
7da372e4a8
Disable settings for testing
2023-06-28 14:55:28 +02:00
Ivan Habunek
38487a0774
Fix error in docs
2023-06-28 14:46:36 +02:00
Ivan Habunek
8aad38671e
Add integration tests for status and thread
2023-06-28 12:38:29 +02:00
Ivan Habunek
f3439ad30d
Use entitites to simpliy print functions
2023-06-26 16:59:14 +02:00