changed config file name
This commit is contained in:
parent
c946310e27
commit
5f92afb375
|
@ -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((
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue