Kiril Kovachev
|
54b303f632
|
feat: Use default config_dir (from dirs crate) instead of hard-coded UNIX path
|
2025-05-08 23:38:55 +01:00 |
|
Kiril Kovachev
|
3a33a5d5fc
|
doc: Comment why permissions are being altered
|
2025-05-08 23:20:10 +01:00 |
|
Kiril Kovachev
|
502170da63
|
fix: Do not panic if .env is not found.
|
2025-05-08 23:18:32 +01:00 |
|
Kiril Kovachev
|
874506a5de
|
refactor: Use Result::or to simplify setup() control flow
|
2025-05-08 01:50:35 +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 |
|