style: rename mwbot.toml template to mwbot_template.toml
This commit is contained in:
parent
679e0af600
commit
e508a94cce
@ -2,7 +2,7 @@ use formatx::formatx;
|
|||||||
use clap::{Parser, Subcommand};
|
use clap::{Parser, Subcommand};
|
||||||
use mwbot::parsoid::WikiMultinode;
|
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";
|
const BOT_CONFIG_PATH: &'static str = "~/.config/mwbot.toml";
|
||||||
|
|
||||||
#[derive(Parser)]
|
#[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();
|
std::fs::write(shellexpand::tilde(BOT_CONFIG_PATH).into_owned(), filled_in_config).unwrap();
|
||||||
Ok(())
|
Ok(())
|
||||||
} else {
|
} 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?"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user