diff --git a/src/branding.rs b/src/branding.rs index ad0b8a5d9..ac216bc9e 100644 --- a/src/branding.rs +++ b/src/branding.rs @@ -49,7 +49,11 @@ pub const BRANDING_SCHEMA_FILE_EXT: &str = if cfg!(feature = "gel") { pub const BRANDING_WSL: &str = "EdgeDB.WSL.1"; /// The display name for the configuration file. -pub const CONFIG_FILE_DISPLAY_NAME: &str = "`gel.toml` (or `edgedb.toml`)"; +pub const CONFIG_FILE_DISPLAY_NAME: &str = if cfg!(feature = "gel") { + "`gel.toml` (or `edgedb.toml`)" +} else { + "`edgedb.toml`" +}; /// The default query tag for server statistics. pub const QUERY_TAG: &str = "gel/cli"; diff --git a/src/portable/project.rs b/src/portable/project.rs index 55c266bbd..e999f3b3b 100644 --- a/src/portable/project.rs +++ b/src/portable/project.rs @@ -304,7 +304,11 @@ pub fn init(options: &Init, opts: &crate::options::Options) -> anyhow::Result<() .project_dir .clone() .unwrap_or_else(|| env::current_dir().unwrap()); - let config_path = dir.join(PROJECT_FILES[0]); + let config_path = dir.join(if cfg!(feature = "gel") { + PROJECT_FILES[0] + } else { + PROJECT_FILES[1] + }); init_new(options, &dir, config_path, opts)?; return Ok(()); };