Function brane_cli::utils::ensure_history_file
source ยท pub fn ensure_history_file(create: bool) -> Result<PathBuf, UtilError>
Expand description
Makes sure that the history file exists and then returns its path.
Arguments
create
: If true, creates the directory if it does not exist; if false, throws an error.
Returns
The path of the HistoryFile or a UtilError otherwise.