View Source Nexus.CLI.Validation (nexus_cli v0.5.0)

Provides validation functions for commands, flags, and arguments within the Nexus.CLI DSL.

Summary

Functions

Validates an argument.

Validates a command, including its subcommands, flags, and arguments.

Validates a flag.

Functions

@spec validate_argument(Nexus.CLI.Argument.t()) :: Nexus.CLI.Argument.t()

Validates an argument.

Link to this function

validate_command(command)

View Source
@spec validate_command(Nexus.CLI.Command.t()) :: Nexus.CLI.Command.t()

Validates a command, including its subcommands, flags, and arguments.

@spec validate_flag(Nexus.CLI.Flag.t()) :: Nexus.CLI.Flag.t()

Validates a flag.