init_script_file

Function init_script_file 

Source
pub fn init_script_file(file_path: Option<&str>)
Expand description

Initialize a Scripts.toml file in the current directory.

If the file already exists, it prompts the user for confirmation to replace it. The function creates a default Scripts.toml file if the user agrees.

§Arguments

  • file_path - Optional path to the Scripts.toml file. Defaults to “Scripts.toml” if None.

§Panics

This function will panic if it fails to read user input or write to the Scripts.toml file.