org.appng.cli.commands.repository

## Class CreateRepository

- java.lang.Object
- - org.appng.cli.commands.repository.CreateRepository

- All Implemented Interfaces:
    ExecutableCliCommand

      public class CreateRepository
      extends Object
      implements ExecutableCliCommand

  Creates a repository.

       Usage: appng create-repository [options]
         Options:
           -d
              The repository description.
           -e
              Enable repository.
           -g
              The digest for the repository.
           -m
              The repository mode (ALL, STABLE, SNAPSHOT).
              Default: ALL
         * -n
              The repository name.
           -p
              Publish repository.
              Default: false
           -r
              The name of the remote repository (required for repository type REMOTE).
           -s
              Use strict mode.
              Default: false
           -t
              The repository type (LOCAL, REMOTE).
              Default: LOCAL
         * -u
              The path (URI) to the repository.

  Author:
    Matthias Herlitzius

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CreateRepository()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `execute(CliEnvironment cle)` Executes the command.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### CreateRepository

          public CreateRepository()

  - ### Method Detail

    - #### execute

          public void execute(CliEnvironment cle)
                       throws BusinessException

      Description copied from interface: `ExecutableCliCommand`
      Executes the command.
      Specified by:
        `execute` in interface `ExecutableCliCommand`
      Parameters:
        `cle` - the `CliEnvironment` to use
      Throws:
        `BusinessException` - if on error occurs while executing the command

Copyright © 2011–2023 aiticon GmbH. All rights reserved.