Rename to StartRNR

We're pivoting, baby!
This commit is contained in:
Kiana Sheibani 2023-10-03 23:37:51 -04:00
parent ad6445bcd2
commit d3459346f7
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
8 changed files with 45 additions and 51 deletions

View file

@ -16,7 +16,7 @@ pub struct DatasetMetadata {
/// Return the path to the datasets file.
fn datasets_path(config_dir: &Path) -> io::Result<PathBuf> {
let mut path = config_dir.to_owned();
path.push("ggelo");
path.push("startrnr");
// Create datasets path if it doesn't exist
fs::create_dir_all(&path)?;

View file

@ -25,10 +25,10 @@ pub fn issue(msg: &str, code: i32) -> ! {
/// ## CLI Structs
#[derive(Parser)]
#[command(name = "StartGGElo")]
#[command(name = "StartRNR")]
#[command(author = "Kiana Sheibani <kiana.a.sheibani@gmail.com>")]
#[command(version = "0.1.0")]
#[command(about = "StartGGElo - Elo rating calculator for start.gg tournaments", long_about = None)]
#[command(about = "StartRNR - Elo rating calculator for start.gg tournaments", long_about = None)]
struct Cli {
#[command(subcommand)]
subcommand: Subcommands,

View file

@ -28,7 +28,7 @@ pub fn get_auth_token(config_dir: &Path) -> Option<String> {
Err(VarError::NotUnicode(_)) => error("Invalid authorization key", 2),
Err(VarError::NotPresent) => {
let mut auth_file = config_dir.to_owned();
auth_file.push("ggelo");
auth_file.push("startrnr");
auth_file.push("auth.txt");
read_to_string(auth_file).ok().and_then(|s| {
let trimmed = s.trim();