Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 2.01 KB

File metadata and controls

60 lines (42 loc) · 2.01 KB

coconut repository add

add a new git repository

Synopsis

The repository add command adds a git repository to the catalogue of repositories used for task and workflow configuration. The default revision of the repository may be explicitly specified by passing the flag --default-revision . In any case, the ensuing list is followed until a valid revision has been identified:

  • explicitly set default revision (optional)
  • global default revision
  • master
  • main

Exhaustion of the aforementioned list results in a repo add failure.

coconut repo add can be called with

  1. a repository identifier
  2. a repository identifier coupled with the --default-revision flag (see examples below)

The protocol prefix should always be omitted.

coconut repository add <repo url> [flags]

Examples

 * `coconut repo add github.com/AliceO2Group/ControlWorkflows`
 * `coconut repo add github.com/AliceO2Group/ControlWorkflows --default-revision custom-rev`
 * `coconut repo add alio2-cr1-hv-gw01.cern.ch:/opt/git/ControlWorkflows --default-revision custom-rev`
 * `coconut repo add /home/flp/git/ControlWorkflows`

Options

  -d, --default-revision string   default revision for repository to add
  -h, --help                      help for add

Options inherited from parent commands

      --config string            optional configuration file for coconut (default $HOME/.config/coconut/settings.yaml)
      --config_endpoint string   configuration endpoint used by AliECS core as PROTO://HOST:PORT (default "apricot://127.0.0.1:32101")
      --endpoint string          AliECS core endpoint as HOST:PORT (default "127.0.0.1:32102")
      --nocolor                  disable colors in output
      --nospinner                disable animations in output
  -v, --verbose                  show verbose output for debug purposes

SEE ALSO

Auto generated by spf13/cobra on 27-Nov-2024