You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/en/docs/7_cli_api/porchctl.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -406,6 +406,7 @@ porchctl rpkg get [PACKAGE] [flags]
406
406
|`--name string`| Filter by package name (substring match) ||
407
407
|`--revision int`| Filter by revision number |`-2` (all) |
408
408
|`--workspace string`| Filter by workspace name ||
409
+
|`--show-kptfile`| Display the root Kptfile of the specified package revision. Requires exactly one package revision name. Cannot be combined with `--name`, `--revision`, `--workspace`, or `-A`. ||
409
410
|`-A, --all-namespaces`| List across all namespaces ||
410
411
|`-o, --output string`| Output format ||
411
412
|`--no-headers`| Don't print headers ||
@@ -425,6 +426,9 @@ porchctl rpkg get --namespace=example-namespace
425
426
426
427
# Get all with revision 0 (Draft/Proposed)
427
428
porchctl rpkg get --revision=0
429
+
430
+
# Display the root Kptfile of a specific package revision
431
+
porchctl rpkg get example-repo.example-package-name.example-workspace --show-kptfile --namespace=example-namespace
cmd.Flags().Int64Var(&r.revision, "revision", -2, "Revision of the packages to get. Any package whose revision matches this value will be included in the results.")
"WorkspaceName of the packages to get. Any package whose workspaceName matches this value will be included in the results.")
72
+
cmd.Flags().BoolVar(&r.showKptfile, "show-kptfile", false, "Display the root Kptfile of the specified package revision. Requires a single package revision name as an argument.")
69
73
70
74
r.getFlags.AddFlags(cmd)
71
75
r.printFlags.AddFlags(cmd)
@@ -85,18 +89,22 @@ type runner struct {
85
89
packageNamestring
86
90
revisionint64
87
91
workspacestring
92
+
showKptfilebool
88
93
printFlags*get.PrintFlags
89
94
90
95
requestTablebool
96
+
97
+
// client is used for --show-kptfile; set in preRunE or injected in tests
0 commit comments