chisel/
history.rs

1
2
3
4
5
6
7
8
9
10
11
//! chisel history file

use std::path::PathBuf;

/// The name of the chisel history file
pub const CHISEL_HISTORY_FILE_NAME: &str = ".chisel_history";

/// Returns the path to foundry's global toml file that's stored at `~/.foundry/.chisel_history`
pub fn chisel_history_file() -> Option<PathBuf> {
    foundry_config::Config::foundry_dir().map(|p| p.join(CHISEL_HISTORY_FILE_NAME))
}