We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b781249 commit 74b3be2Copy full SHA for 74b3be2
crates/nebula-cli/src/config/mod.rs
@@ -47,6 +47,10 @@ impl NebulaConfig {
47
48
pub fn append(&self) -> anyhow::Result<()> {
49
let config_file_path = config_file_path(None)?;
50
+ if !config_file_path.exists() {
51
+ std::fs::write(&config_file_path, "")?;
52
+ }
53
+
54
let mut config: NebulaConfigs = Config::builder()
55
.add_source(File::from(config_file_path.clone()).format(FileFormat::Toml))
56
.build()?
0 commit comments