acr-cli 0.6.0

A CLI tool for AtCoder competitive programming in Rust
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub mod global;
pub mod session;

use std::path::PathBuf;

use anyhow::Context;

/// Returns the acr config directory: `~/.config/acr/`
pub fn config_dir() -> anyhow::Result<PathBuf> {
    let dir = dirs::config_dir()
        .context("Could not determine config directory")?
        .join("acr");
    Ok(dir)
}