Typealiases

The following typealiases are available globally.

  • Configuration block

    Declaration

    Swift

    public typealias Configuration = (Command) -> ()
  • 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)