From e508a94cce9aaf2aad2d4f505fdc422a70f4d75d Mon Sep 17 00:00:00 2001 From: Kiril Kovachev Date: Thu, 8 May 2025 01:12:12 +0100 Subject: [PATCH] style: rename mwbot.toml template to mwbot_template.toml --- mwbot.toml => mwbot_template.toml | 0 src/main.rs | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename mwbot.toml => mwbot_template.toml (100%) diff --git a/mwbot.toml b/mwbot_template.toml similarity index 100% rename from mwbot.toml rename to mwbot_template.toml diff --git a/src/main.rs b/src/main.rs index 5458034..c9297dc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,7 @@ use formatx::formatx; use clap::{Parser, Subcommand}; use mwbot::parsoid::WikiMultinode; -const CONFIG_TEMPLATE_PATH: &'static str = "mwbot.toml"; +const CONFIG_TEMPLATE_PATH: &'static str = "mwbot_template.toml"; const BOT_CONFIG_PATH: &'static str = "~/.config/mwbot.toml"; #[derive(Parser)] @@ -47,7 +47,7 @@ fn setup(args: SetupArgs) -> Result<(), std::io::Error> { std::fs::write(shellexpand::tilde(BOT_CONFIG_PATH).into_owned(), filled_in_config).unwrap(); Ok(()) } else { - Err(std::io::Error::new(std::io::ErrorKind::NotFound, "Unable to find mwbot.toml; did you execute the script from the same directory?")) + Err(std::io::Error::new(std::io::ErrorKind::NotFound, "Unable to find mwbot_template.toml; did you execute the script from the same directory?")) } }