-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Phase- updating cmd files for documentation
The description and examples are updated for the airshipctl commands, which will be inturn used for generating documentation. Please ignore the .md file changes in this PS. They are added for zuul gates to pass. Here is the PS with generated documention files https://review.opendev.org/c/airship/airshipctl/+/789250 Relates-To: #280 Change-Id: I3587ad211f7d614b5cc6a162ca352ac54c3b90f0
- Loading branch information
1 parent
ebfca69
commit 4c3140b
Showing
23 changed files
with
192 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 14 additions & 15 deletions
29
cmd/phase/testdata/TestNewListCommandGoldenOutput/phase-list-cmd-with-help.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
List life-cycle phases which were defined in document model by group. | ||
Phases within a group are executed sequentially. Multiple phase groups | ||
are executed in parallel. | ||
List phases defined in site manifests by plan. Phases within a plan are | ||
executed sequentially. Multiple phase plans are executed in parallel. | ||
|
||
Usage: | ||
list PHASE_NAME [flags] | ||
|
||
Examples: | ||
|
||
# List phases of phasePlan | ||
airshipctl phase list --plan phasePlan | ||
List phases of phasePlan | ||
# airshipctl phase list --plan phasePlan | ||
|
||
# To output the contents to table (default operation) | ||
airshipctl phase list --plan phasePlan -o table | ||
To output the contents in table format (default operation) | ||
# airshipctl phase list --plan phasePlan -o table | ||
|
||
# To output the contents to yaml | ||
airshipctl phase list --plan phasePlan -o yaml | ||
To output the contents in yaml format | ||
# airshipctl phase list --plan phasePlan -o yaml | ||
|
||
# List all phases | ||
airshipctl phase list | ||
List all phases | ||
# airshipctl phase list | ||
|
||
# List phases with clustername | ||
airshipctl phase list --cluster-name clustername | ||
List phases with clustername | ||
# airshipctl phase list --cluster-name clustername | ||
|
||
|
||
Flags: | ||
-c, --cluster-name string filter documents by cluster name | ||
-h, --help help for list | ||
-o, --output string 'table' and 'yaml' are available output formats (default "table") | ||
--plan string Plan name of a plan | ||
-o, --output string output format. Supported formats are 'table' and 'yaml' (default "table") | ||
--plan string plan name of a plan |
15 changes: 7 additions & 8 deletions
15
cmd/phase/testdata/TestNewPhaseCommandGoldenOutput/phase-cmd-with-help.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
cmd/phase/testdata/TestNewTreeCommandGoldenOutput/tree-cmd-with-help.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 11 additions & 12 deletions
23
cmd/phase/testdata/TestRenderGoldenOutput/render-with-help.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.