Skip to main content

create_change

Function create_change 

Source
pub fn create_change(
    ito_path: &Path,
    name: &str,
    schema: &str,
    module: Option<&str>,
    description: Option<&str>,
) -> Result<CreateChangeResult, CreateError>
Expand description

Create a new change directory and update the module’s module.md checklist.

When module is Some, the change is scoped to that module:

  • The allocation namespace is the module’s NNN identifier.
  • The folder name uses the NNN-NN_name canonical form.
  • The checklist entry is written to the module’s module.md.

When module is None, the change is placed in the default 000 namespace.