Package org.tbk.ngtor.conditional

# Annotation Interface ConditionalOnCommand

@Retention(RUNTIME) @Target({TYPE,METHOD}) @Documented @Conditional(org.tbk.ngtor.conditional.OnCommandCondition.class) public @interface ConditionalOnCommand
`@Conditional` that matches when a given command is executed.

- ## Optional Element Summary

  Optional Elements
  Modifier and Type
  Optional Element
  Description
  `boolean`
  `matchIfMissing`
  Specify if the condition should match if the command is not set.
  `String[]`
  `name`
  The name of the command to test.
  `String[]`
  `value`
  Alias for `name()`.

- ## Element Details

  - ### value

    String[] value
    Alias for `name()`.
    Returns:
      the names
    Default:
      {}

  - ### name

    String[] name
    The name of the command to test.
    Returns:
      the names
    Default:
      {}

  - ### matchIfMissing

    boolean matchIfMissing
    Specify if the condition should match if the command is not set. Defaults to `false`.
    Returns:
      should match if the command is missing
    Default:
      false