Commit Graph

  • ea4d6f6889 doc: finish reporting the ReadableConfig error main Kiril Kovachev 2025-05-09 19:39:33 +0100
  • 3ad70ce318 build: Only invoke constrain_unix_permissions on UNIX-like builds using #[cfg]. Kiril Kovachev 2025-05-09 15:42:25 +0100
  • 09f9fd3703 style: Use Args instead of clap::Args Kiril Kovachev 2025-05-09 15:34:34 +0100
  • c3da322a90 doc: Add note in to-do list about improving the clap API Kiril Kovachev 2025-05-09 14:33:43 +0100
  • 2650d1d92e refactor: Extract create_toml_line function out from fill_config_template Kiril Kovachev 2025-05-09 12:30:26 +0100
  • 9a219d4416 refactor: Factor newline character into pushed strings inside fill_config_template, instead of using a separate push call Kiril Kovachev 2025-05-09 12:26:37 +0100
  • 6ebd7fc11b refactor: Rename chosen_method to auth_method inside fill_config_template Kiril Kovachev 2025-05-09 12:25:56 +0100
  • 1400334ce0 feat: Now allow supplying either password or OAuth2 token in config generation Kiril Kovachev 2025-05-09 12:24:10 +0100
  • 357e012525 feat: Add ArgGroup to allow choice of multiple possible auth methods Kiril Kovachev 2025-05-09 12:13:39 +0100
  • 9c7bcc8f99 doc: Rephrase doc for the setup action in the CLI Kiril Kovachev 2025-05-09 00:08:38 +0100
  • b4b605861a doc: Add plan to add selective OAuth/password filling-in depending on which was entered Kiril Kovachev 2025-05-09 00:07:21 +0100
  • 26f933cced doc: Update note concerning error-handling to refer to refactored function Kiril Kovachev 2025-05-09 00:06:09 +0100
  • d2c2f09ec3 feat: Make OAuth2 token the default credential for authentification Kiril Kovachev 2025-05-09 00:05:20 +0100
  • 8f779d005f refactor: Factor out file permission constraint from setup Kiril Kovachev 2025-05-08 23:50:52 +0100
  • 36dae8ca6e refactor: Factor out read_config_template from setup as well Kiril Kovachev 2025-05-08 23:48:05 +0100
  • d5c3e55613 refactor: Extract fill_config_template function out from setup code Kiril Kovachev 2025-05-08 23:46:51 +0100
  • 784c28af77 refactor: Use ? operator instead of unwrapping inside of setup() Kiril Kovachev 2025-05-08 23:42:08 +0100
  • dec35b4c8f style: Use "FILE_NAME" instead of "FILENAME" to be consistent with Rust std::path naming convention Kiril Kovachev 2025-05-08 23:40:14 +0100
  • 54b303f632 feat: Use default config_dir (from dirs crate) instead of hard-coded UNIX path Kiril Kovachev 2025-05-08 23:38:55 +0100
  • 3a33a5d5fc doc: Comment why permissions are being altered Kiril Kovachev 2025-05-08 23:20:10 +0100
  • 502170da63 fix: Do not panic if .env is not found. Kiril Kovachev 2025-05-08 23:18:32 +0100
  • a6b5171ad8 doc: Add note to to-do: must clean up the syntax of the error handling in setup(). Kiril Kovachev 2025-05-08 01:51:53 +0100
  • 874506a5de refactor: Use Result::or to simplify setup() control flow Kiril Kovachev 2025-05-08 01:50:35 +0100
  • fa1e646f01 doc: Add TODO file, which currently tracks my intention to report the previous "ReadableConfig" (permissions-related) bug Kiril Kovachev 2025-05-08 01:33:23 +0100
  • 9af87c2cbd fix: Temporarily comment out oauth2_token in config template whilst a more principled way of choosing OAuth2 vs password is implemented Kiril Kovachev 2025-05-08 01:32:23 +0100
  • 477a39d764 fix: Use "password" field in generated mwbot.toml instead of "botpassword" to authenticate Kiril Kovachev 2025-05-08 01:31:25 +0100
  • 4ba5dc66e5 fix: Correctly set permissions of generated config file, which were previously too loose Kiril Kovachev 2025-05-08 01:29:45 +0100
  • 5404259896 refactor: use CONFIG_TEMPLATE_PATH constant in error message instead of hard-coding Kiril Kovachev 2025-05-08 01:13:03 +0100
  • e508a94cce style: rename mwbot.toml template to mwbot_template.toml Kiril Kovachev 2025-05-08 01:12:12 +0100
  • 679e0af600 refactor: Use constant to represent template for generated config file Kiril Kovachev 2025-05-08 00:39:31 +0100
  • a15b23a70a refactor: Factor arguments of Setup variant into their own struct and remove prior janky matching Kiril Kovachev 2025-05-08 00:37:35 +0100
  • a6e9bce223 style: Remove space between uses Kiril Kovachev 2025-05-08 00:31:02 +0100
  • 59c6dc104d refactor: Remove unused FromStr use Kiril Kovachev 2025-05-08 00:30:31 +0100
  • db7ce5cb7e refactor: Use constant for ~/.config/mwbot.toml Kiril Kovachev 2025-05-08 00:27:39 +0100
  • e1856f70cd refactor: Remove unused env import Kiril Kovachev 2025-05-08 00:22:06 +0100
  • c22af9bedf feat: Add ability to set up API and REST URLs Kiril Kovachev 2025-05-08 00:21:29 +0100
  • 2fcbe535b9 feat: Use setup subcommand to set up config instead of passing args to run Kiril Kovachev 2025-05-08 00:20:11 +0100
  • cabc194158 style: Remove redundant import Kiril Kovachev 2025-05-08 00:10:54 +0100
  • 6229d9d5a8 refactor: Improved error handling using ? operator and better function signatures Kiril Kovachev 2025-05-08 00:08:35 +0100
  • c5beab75d5 Initial commit Kiril Kovachev 2025-05-07 23:56:33 +0100
  • 229cc38238 Initial commit kiril 2025-05-05 16:27:20 +0000