Skip to content

Commit

Permalink
Update kpt alpha command help (#3068)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmaly committed May 2, 2022
1 parent 3705750 commit 94da3ee
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion internal/cmdrpkgapprove/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func newRunner(ctx context.Context, rcg *genericclioptions.ConfigFlags) *runner
Use: "approve PACKAGE",
Short: "Approves a proposal to finalize a package revision.",
Long: longMsg,
Example: "kpt alpha rpkg approve git-repository:package-revision:v3",
Example: "kpt alpha rpkg approve package-name",
PreRunE: r.preRunE,
RunE: r.runE,
Hidden: porch.HidePorchCommands,
Expand Down
2 changes: 1 addition & 1 deletion internal/cmdrpkgclone/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ SOURCE_PACKAGE:
Source package. Can be a reference to an OCI package, Git package, or an package resource name:
* oci://oci-repository/package-name
* http://git-repository.git/package-name
* repository:package:revision
* package-revision-name
NAME:
Target package revision name (downstream package)
Expand Down
10 changes: 5 additions & 5 deletions internal/cmdrpkginit/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@ PACKAGE:
Flags:
--repository
Repository to which package will be cloned (downstream repository).
Repository in which the package will be created.
--revision
Revision of the downstream package.
Revision of the new package.
--description
short description of the package
Short description of the package
--keywords
list of keywords for the package
List of keywords for the package
--site
link to page with information about the package
Link to page with information about the package
`
)
Expand Down
2 changes: 1 addition & 1 deletion internal/cmdrpkgpull/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func newRunner(ctx context.Context, rcg *genericclioptions.ConfigFlags) *runner
SuggestFor: []string{},
Short: "Reads package resources.",
Long: longMsg,
Example: "kpt alpha rpkg pull repository:package:v1 ./package-directory",
Example: "kpt alpha rpkg pull package-name ./package-directory",
PreRunE: r.preRunE,
RunE: r.runE,
Hidden: porch.HidePorchCommands,
Expand Down
2 changes: 1 addition & 1 deletion internal/cmdrpkgreject/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func newRunner(ctx context.Context, rcg *genericclioptions.ConfigFlags) *runner
Use: "reject PACKAGE",
Short: "Rejects a proposal to finalize a package revision",
Long: longMsg,
Example: "kpt alpha rpkg reject git-repository:package-revision:v3",
Example: "kpt alpha rpkg reject package-name",
PreRunE: r.preRunE,
RunE: r.runE,
Hidden: porch.HidePorchCommands,
Expand Down
4 changes: 2 additions & 2 deletions internal/cmdsync/delete/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (r *runner) runE(cmd *cobra.Command, args []string) error {
return errors.E(op, err)
}

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

fmt.Printf("Package %s successfully deleted\n", name)
fmt.Printf("Sync %s successfully deleted\n", name)
return nil
}

Expand Down

0 comments on commit 94da3ee

Please sign in to comment.