Type Aliases

The following type aliases are available globally.

  • Run

    Run block, called when the command is executed This callback receives the Flags passed to it and the positional arguments

    Declaration

    Swift

    public typealias Run = (Flags, [String]) -> ()
  • Conditional Run block, called when the command is executed When returining true from this command the execution continues Returning false, means dont continue the execution

    Declaration

    Swift

    public typealias ConditionalRun = (Flags, [String]) -> (Bool)
  • Configuration block

    Declaration

    Swift

    public typealias Configuration = (Command) -> ()