Commit Graph

20 Commits

Author SHA1 Message Date
Kiril Kovachev
a6b5171ad8 doc: Add note to to-do: must clean up the syntax of the error handling in setup(). 2025-05-08 01:51:53 +01:00
Kiril Kovachev
874506a5de refactor: Use Result::or to simplify setup() control flow 2025-05-08 01:50:35 +01:00
Kiril Kovachev
fa1e646f01 doc: Add TODO file, which currently tracks my intention to report the previous "ReadableConfig" (permissions-related) bug 2025-05-08 01:33:23 +01:00
Kiril Kovachev
9af87c2cbd fix: Temporarily comment out oauth2_token in config template whilst a more principled way of choosing OAuth2 vs password is implemented 2025-05-08 01:32:23 +01:00
Kiril Kovachev
477a39d764 fix: Use "password" field in generated mwbot.toml instead of "botpassword" to authenticate 2025-05-08 01:31:25 +01:00
Kiril Kovachev
4ba5dc66e5 fix: Correctly set permissions of generated config file, which were previously too loose 2025-05-08 01:29:45 +01:00
Kiril Kovachev
5404259896 refactor: use CONFIG_TEMPLATE_PATH constant in error message instead of hard-coding 2025-05-08 01:13:03 +01:00
Kiril Kovachev
e508a94cce style: rename mwbot.toml template to mwbot_template.toml 2025-05-08 01:12:12 +01:00
Kiril Kovachev
679e0af600 refactor: Use constant to represent template for generated config file 2025-05-08 00:39:31 +01:00
Kiril Kovachev
a15b23a70a refactor: Factor arguments of Setup variant into their own struct and remove prior janky matching 2025-05-08 00:37:35 +01:00
Kiril Kovachev
a6e9bce223 style: Remove space between uses 2025-05-08 00:31:02 +01:00
Kiril Kovachev
59c6dc104d refactor: Remove unused FromStr use 2025-05-08 00:30:31 +01:00
Kiril Kovachev
db7ce5cb7e refactor: Use constant for ~/.config/mwbot.toml 2025-05-08 00:27:39 +01:00
Kiril Kovachev
e1856f70cd refactor: Remove unused env import 2025-05-08 00:22:06 +01:00
Kiril Kovachev
c22af9bedf feat: Add ability to set up API and REST URLs 2025-05-08 00:21:29 +01:00
Kiril Kovachev
2fcbe535b9 feat: Use setup subcommand to set up config instead of passing args to run 2025-05-08 00:20:11 +01:00
Kiril Kovachev
cabc194158 style: Remove redundant import 2025-05-08 00:10:54 +01:00
Kiril Kovachev
6229d9d5a8 refactor: Improved error handling using ? operator and better function signatures 2025-05-08 00:08:35 +01:00
Kiril Kovachev
c5beab75d5 Initial commit 2025-05-07 23:56:33 +01:00
229cc38238 Initial commit 2025-05-05 16:27:20 +00:00