changed config file name

This commit is contained in:
Emma Tebibyte 2023-03-23 01:35:01 -04:00
parent c946310e27
commit 5f92afb375
Signed by: emma
GPG Key ID: 6D661C738815E7DD
2 changed files with 8 additions and 1 deletions

View File

@ -40,7 +40,7 @@ pub struct Config {
}
pub fn get_config(dirs: BaseDirectories) -> Result<PathBuf, (String, u32)> {
match dirs.place_config_file("config.toml") {
match dirs.place_config_file("hopper.toml") {
Ok(file) => Ok(file),
Err(_) => {
Err((

View File

@ -38,6 +38,11 @@ use yacexits::{
EX_UNAVAILABLE,
};
struct AppContext {
args: Arguments,
config: Config,
}
#[tokio::main]
#[no_mangle]
async fn rust_main(args: c_main::Args) {
@ -67,6 +72,8 @@ async fn rust_main(args: c_main::Args) {
},
};
let ctx = AppContext { args, config };
match ctx.arguments.command {
// Command::Get(search_args) => cmd_get(&ctx, search_args).await,
// Command::Init(hopfile_args) => cmd_init(hopfile_args).await,