Interface CliCommandAutoComplete

All Superinterfaces:
io.github.mmm.property.AttributeReadOnly, CliCommand, io.github.mmm.marshall.MarshallableObject, io.github.mmm.marshall.Marshaller<Object>, io.github.mmm.marshall.Marshalling<Object>, io.github.mmm.marshall.MarshallingObject, io.github.mmm.bean.ReadableBean, io.github.mmm.value.ReadablePath, io.github.mmm.marshall.id.StructuredIdMappingObject, io.github.mmm.marshall.UnmarshallableObject, io.github.mmm.marshall.Unmarshaller<Object>, io.github.mmm.validation.Validatable, io.github.mmm.bean.WritableBean, io.github.mmm.value.WritablePath

public interface CliCommandAutoComplete extends CliCommand
CliCommand for auto-completion of the CLI.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.github.mmm.value.ReadablePath

    io.github.mmm.value.ReadablePath.PathBuilder
  • Field Summary

    Fields inherited from interface io.github.mmm.cli.command.CliCommand

    ALIAS_WILDCARD

    Fields inherited from interface io.github.mmm.bean.ReadableBean

    SUFFIX_PROPERTY
  • Method Summary

    Modifier and Type
    Method
    Description
    io.github.mmm.property.container.list.ListProperty<String>
     
    io.github.mmm.property.booleans.BooleanProperty
     
    default boolean
     
    default int
    run(CliMain main)
    Executes this CliCommand.

    Methods inherited from interface io.github.mmm.property.AttributeReadOnly

    isReadOnly

    Methods inherited from interface io.github.mmm.marshall.MarshallableObject

    writeObject

    Methods inherited from interface io.github.mmm.bean.ReadableBean

    copy, doEquals, doToString, get, getAliases, getPropertyCount, isDynamic, isEqualTo, isPolymorphic, isPrototype, mapPropertyIds, newInstance, toString, validate

    Methods inherited from interface io.github.mmm.value.ReadablePath

    parentPath, path, path, path

    Methods inherited from interface io.github.mmm.marshall.UnmarshallableObject

    readObject

    Methods inherited from interface io.github.mmm.validation.Validatable

    validateOrThrow

    Methods inherited from interface io.github.mmm.bean.WritableBean

    addProperty, asTypeKey, createProperty, createProperty, defineIdMapping, getOrCreateProperty, getOrCreateProperty, getProperties, getProperty, getRequiredProperty, getType, pathSegment, pathSegment, read, set, set, set, setDynamic, write

    Methods inherited from interface io.github.mmm.value.WritablePath

    parentPath
  • Method Details

    • Complete

      @PropertyAlias({"$","0"}) @Mandatory io.github.mmm.property.booleans.BooleanProperty Complete()
      Returns:
      flag to activate this command.
    • Arguments

      @PropertyAlias({"*","1"}) io.github.mmm.property.container.list.ListProperty<String> Arguments()
      Returns:
      the current arguments to auto-complete.
    • hideFromHelp

      default boolean hideFromHelp()
      Specified by:
      hideFromHelp in interface CliCommand
      Returns:
      true in case this command shall not be included in the help output.
    • run

      default int run(CliMain main)
      Description copied from interface: CliCommand
      Executes this CliCommand. Has to be implemented as default method.
      Specified by:
      run in interface CliCommand
      Parameters:
      main - the CliMain program.
      Returns:
      the exit code.