Skip to main content

add_command

Function add_command 

Source
pub fn add_command(
    path: &Path,
    name: &str,
    description: &str,
) -> Result<AddCommandOutcome, String>
Expand description

Append a top-level command entry under commands: in the fdl.yml at path if the entry isn’t already declared.

description is written as a description: subfield. Pass an empty string to omit it (the entry then has nothing under it, falling back to the convention-default path: ./<name>/).

Behaviour: