Interface CliCommandVersion

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.UnmarshallableObject, io.github.mmm.marshall.Unmarshaller<Object>, io.github.mmm.validation.Validatable, io.github.mmm.bean.WritableBean, io.github.mmm.value.WritablePath

public interface CliCommandVersion extends CliCommand
CliCommand to print the version of the program.
  • 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

    PROPERTY_TYPE_ID, PROPERTY_TYPE_NAME, SUFFIX_PROPERTY
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    run(CliMain main)
    Executes this CliCommand.
    io.github.mmm.property.booleans.BooleanProperty
     

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

    isReadOnly

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

    hideFromHelp

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

    write, writeObject

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

    copy, doEquals, doToString, get, getAliases, getPropertyCount, getType, 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, createProperty, createProperty, getOrCreateProperty, getOrCreateProperty, getProperties, getProperty, getRequiredProperty, pathSegment, pathSegment, read, set, set, set, setDynamic

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

    parentPath
  • Method Details

    • Version

      @PropertyAlias({"--version","-v"}) @Mandatory io.github.mmm.property.booleans.BooleanProperty Version()
      Returns:
      flag to activate this command.
    • 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.