Skip to content

Commit 94da3ee

Browse files
authored
Update kpt alpha command help (#3068)
1 parent 3705750 commit 94da3ee

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

internal/cmdrpkgapprove/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func newRunner(ctx context.Context, rcg *genericclioptions.ConfigFlags) *runner
5757
Use: "approve PACKAGE",
5858
Short: "Approves a proposal to finalize a package revision.",
5959
Long: longMsg,
60-
Example: "kpt alpha rpkg approve git-repository:package-revision:v3",
60+
Example: "kpt alpha rpkg approve package-name",
6161
PreRunE: r.preRunE,
6262
RunE: r.runE,
6363
Hidden: porch.HidePorchCommands,

internal/cmdrpkgclone/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ SOURCE_PACKAGE:
4141
Source package. Can be a reference to an OCI package, Git package, or an package resource name:
4242
* oci://oci-repository/package-name
4343
* http://git-repository.git/package-name
44-
* repository:package:revision
44+
* package-revision-name
4545
4646
NAME:
4747
Target package revision name (downstream package)

internal/cmdrpkginit/command.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,19 @@ PACKAGE:
4343
Flags:
4444
4545
--repository
46-
Repository to which package will be cloned (downstream repository).
46+
Repository in which the package will be created.
4747
4848
--revision
49-
Revision of the downstream package.
49+
Revision of the new package.
5050
5151
--description
52-
short description of the package
52+
Short description of the package
5353
5454
--keywords
55-
list of keywords for the package
55+
List of keywords for the package
5656
5757
--site
58-
link to page with information about the package
58+
Link to page with information about the package
5959
6060
`
6161
)

internal/cmdrpkgpull/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func newRunner(ctx context.Context, rcg *genericclioptions.ConfigFlags) *runner
6969
SuggestFor: []string{},
7070
Short: "Reads package resources.",
7171
Long: longMsg,
72-
Example: "kpt alpha rpkg pull repository:package:v1 ./package-directory",
72+
Example: "kpt alpha rpkg pull package-name ./package-directory",
7373
PreRunE: r.preRunE,
7474
RunE: r.runE,
7575
Hidden: porch.HidePorchCommands,

internal/cmdrpkgreject/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func newRunner(ctx context.Context, rcg *genericclioptions.ConfigFlags) *runner
5757
Use: "reject PACKAGE",
5858
Short: "Rejects a proposal to finalize a package revision",
5959
Long: longMsg,
60-
Example: "kpt alpha rpkg reject git-repository:package-revision:v3",
60+
Example: "kpt alpha rpkg reject package-name",
6161
PreRunE: r.preRunE,
6262
RunE: r.runE,
6363
Hidden: porch.HidePorchCommands,

internal/cmdsync/delete/command.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func (r *runner) runE(cmd *cobra.Command, args []string) error {
156156
return errors.E(op, err)
157157
}
158158

159-
fmt.Println("Deleting package resources..")
159+
fmt.Println("Deleting synced resources..")
160160
if err := r.client.Update(r.ctx, &rs); err != nil {
161161
return errors.E(op, err)
162162
}
@@ -207,7 +207,7 @@ func (r *runner) runE(cmd *cobra.Command, args []string) error {
207207
return errors.E(op, fmt.Errorf("failed to delete Secret %s: %w", secret, err))
208208
}
209209

210-
fmt.Printf("Package %s successfully deleted\n", name)
210+
fmt.Printf("Sync %s successfully deleted\n", name)
211211
return nil
212212
}
213213

0 commit comments

Comments
 (0)