1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/osdk-cli-reference-completion.adoc
2020-12-10 09:14:15 -07:00

45 lines
793 B
Plaintext

// Module included in the following assemblies:
//
// * operators/operator_sdk/osdk-cli-reference.adoc
[id="osdk-cli-reference-completion_{context}"]
= completion
The `operator-sdk completion` command generates shell completions to make issuing CLI commands quicker and easier.
.`completion` subcommands
[options="header",cols="1,3"]
|===
|Subcommand |Description
|`bash`
|Generate bash completions.
|`zsh`
|Generate zsh completions.
|===
.`completion` flags
[options="header",cols="1,3"]
|===
|Flag |Description
|`-h, --help`
|Usage help output.
|===
For example:
[source,terminal]
----
$ operator-sdk completion bash
----
.Example output
[source,terminal]
----
# bash completion for operator-sdk -*- shell-script -*-
...
# ex: ts=4 sw=4 et filetype=sh
----