Skip to main content

handle_init

Function handle_init 

Source
pub fn handle_init(output_path: &str, force: bool) -> Result<()>
Expand description

生成默认配置文件

§Errors

目标文件已存在且未指定 --force、父目录创建失败或文件写入失败时返回错误。