|
| 1 | +# devops CLI Documentation |
| 2 | + |
| 3 | +**Version:** 0.0.2 |
| 4 | + |
| 5 | +**Description:** DevOps: Simplifying your CI/CD pipelines. |
| 6 | + |
| 7 | +## Usage |
| 8 | + |
| 9 | +```bash |
| 10 | +devops [command] [flags] [arguments] |
| 11 | +``` |
| 12 | + |
| 13 | +## Global Flags |
| 14 | + |
| 15 | +| Flag | Short | Type | Description | |
| 16 | +| --------- | ----- | ------ | ----------------------------------- | |
| 17 | +| --file | -f | string | Path to the project definition file | |
| 18 | +| --verbose | -v | count | Increase verbosity (-v or -vv) | |
| 19 | + |
| 20 | +## Commands |
| 21 | + |
| 22 | +### build |
| 23 | + |
| 24 | +**Description:** Run the build operations |
| 25 | + |
| 26 | +Build the project according to the configuration.. |
| 27 | + |
| 28 | +**Usage:** |
| 29 | + |
| 30 | +```bash |
| 31 | +devops build |
| 32 | +``` |
| 33 | + |
| 34 | +### completion |
| 35 | + |
| 36 | +**Description:** Generate the autocompletion script for the specified shell |
| 37 | + |
| 38 | +Generate the autocompletion script for devops for the specified shell. |
| 39 | +See each sub-command's help for details on how to use the generated script. |
| 40 | + |
| 41 | +**Usage:** |
| 42 | + |
| 43 | +```bash |
| 44 | +devops completion |
| 45 | +``` |
| 46 | + |
| 47 | + ### bash |
| 48 | + |
| 49 | + **Description:** Generate the autocompletion script for bash |
| 50 | + |
| 51 | + Generate the autocompletion script for the bash shell. |
| 52 | + |
| 53 | +This script depends on the 'bash-completion' package. |
| 54 | +If it is not installed already, you can install it via your OS's package manager. |
| 55 | + |
| 56 | +To load completions in your current shell session: |
| 57 | + |
| 58 | + source <(devops completion bash) |
| 59 | + |
| 60 | +To load completions for every new session, execute once: |
| 61 | + |
| 62 | +#### Linux: |
| 63 | + |
| 64 | + devops completion bash > /etc/bash_completion.d/devops |
| 65 | + |
| 66 | +#### macOS: |
| 67 | + |
| 68 | + devops completion bash > $(brew --prefix)/etc/bash_completion.d/devops |
| 69 | + |
| 70 | +You will need to start a new shell for this setup to take effect. |
| 71 | + |
| 72 | + **Usage:** |
| 73 | + ```bash |
| 74 | + devops completion bash |
| 75 | + ``` |
| 76 | + |
| 77 | + **Flags:** |
| 78 | + |
| 79 | + | Flag | Short | Type | Description | |
| 80 | + |------|-------|------|-------------| |
| 81 | + | --no-descriptions | | bool | disable completion descriptions | |
| 82 | + |
| 83 | + |
| 84 | + ### fish |
| 85 | + |
| 86 | + **Description:** Generate the autocompletion script for fish |
| 87 | + |
| 88 | + Generate the autocompletion script for the fish shell. |
| 89 | + |
| 90 | +To load completions in your current shell session: |
| 91 | + |
| 92 | + devops completion fish | source |
| 93 | + |
| 94 | +To load completions for every new session, execute once: |
| 95 | + |
| 96 | + devops completion fish > ~/.config/fish/completions/devops.fish |
| 97 | + |
| 98 | +You will need to start a new shell for this setup to take effect. |
| 99 | + |
| 100 | + **Usage:** |
| 101 | + ```bash |
| 102 | + devops completion fish [flags] |
| 103 | + ``` |
| 104 | + |
| 105 | + **Flags:** |
| 106 | + |
| 107 | + | Flag | Short | Type | Description | |
| 108 | + |------|-------|------|-------------| |
| 109 | + | --no-descriptions | | bool | disable completion descriptions | |
| 110 | + |
| 111 | + |
| 112 | + ### powershell |
| 113 | + |
| 114 | + **Description:** Generate the autocompletion script for powershell |
| 115 | + |
| 116 | + Generate the autocompletion script for powershell. |
| 117 | + |
| 118 | +To load completions in your current shell session: |
| 119 | + |
| 120 | + devops completion powershell | Out-String | Invoke-Expression |
| 121 | + |
| 122 | +To load completions for every new session, add the output of the above command |
| 123 | +to your powershell profile. |
| 124 | + |
| 125 | + **Usage:** |
| 126 | + ```bash |
| 127 | + devops completion powershell [flags] |
| 128 | + ``` |
| 129 | + |
| 130 | + **Flags:** |
| 131 | + |
| 132 | + | Flag | Short | Type | Description | |
| 133 | + |------|-------|------|-------------| |
| 134 | + | --no-descriptions | | bool | disable completion descriptions | |
| 135 | + |
| 136 | + |
| 137 | + ### zsh |
| 138 | + |
| 139 | + **Description:** Generate the autocompletion script for zsh |
| 140 | + |
| 141 | + Generate the autocompletion script for the zsh shell. |
| 142 | + |
| 143 | +If shell completion is not already enabled in your environment you will need |
| 144 | +to enable it. You can execute the following once: |
| 145 | + |
| 146 | + echo "autoload -U compinit; compinit" >> ~/.zshrc |
| 147 | + |
| 148 | +To load completions in your current shell session: |
| 149 | + |
| 150 | + source <(devops completion zsh) |
| 151 | + |
| 152 | +To load completions for every new session, execute once: |
| 153 | + |
| 154 | +#### Linux: |
| 155 | + |
| 156 | + devops completion zsh > "${fpath[1]}/_devops" |
| 157 | + |
| 158 | +#### macOS: |
| 159 | + |
| 160 | + devops completion zsh > $(brew --prefix)/share/zsh/site-functions/_devops |
| 161 | + |
| 162 | +You will need to start a new shell for this setup to take effect. |
| 163 | + |
| 164 | + **Usage:** |
| 165 | + ```bash |
| 166 | + devops completion zsh [flags] |
| 167 | + ``` |
| 168 | + |
| 169 | + **Flags:** |
| 170 | + |
| 171 | + | Flag | Short | Type | Description | |
| 172 | + |------|-------|------|-------------| |
| 173 | + | --no-descriptions | | bool | disable completion descriptions | |
| 174 | + |
| 175 | +### doctor |
| 176 | + |
| 177 | +**Description:** Validate your configuration |
| 178 | + |
| 179 | +Run checks on your configuration file to ensure it is ready for use. |
| 180 | + |
| 181 | +**Usage:** |
| 182 | + |
| 183 | +```bash |
| 184 | +devops doctor |
| 185 | +``` |
| 186 | + |
| 187 | +### help |
| 188 | + |
| 189 | +**Description:** Help about any command |
| 190 | + |
| 191 | +Help provides help for any command in the application. |
| 192 | +Simply type devops help [path to command] for full details. |
| 193 | + |
| 194 | +**Usage:** |
| 195 | + |
| 196 | +```bash |
| 197 | +devops help [command] |
| 198 | +``` |
| 199 | + |
| 200 | +### test |
| 201 | + |
| 202 | +**Description:** Run the test operations |
| 203 | + |
| 204 | +Run the designated test operations. |
| 205 | + |
| 206 | +**Usage:** |
| 207 | + |
| 208 | +```bash |
| 209 | +devops test |
| 210 | +``` |
0 commit comments