Skip to main content

parse_management_arguments

Function parse_management_arguments 

Source
pub fn parse_management_arguments(
    arguments: &[OsString],
) -> Result<ManagementAction, ManagementRefusal>
Expand description

What: Parse the arguments after git cli-git into one action or refusal. Why: The leading command name selects one grammar, so an invocation naming two commands is refused for its stray argument rather than guessed at.

In TS you’d write (pseudocode):

function parseManagementArguments(args: string[]): ManagementAction;