Skip to content

Commit

Permalink
update kpt alpha rpkg copy docs (#3135)
Browse files Browse the repository at this point in the history
  • Loading branch information
natasha41575 committed May 25, 2022
1 parent 6008784 commit 4bec45f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 20 deletions.
16 changes: 6 additions & 10 deletions internal/docs/generated/rpkgdocs/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 6 additions & 10 deletions site/reference/cli/alpha/rpkg/copy/README.md
Expand Up @@ -19,7 +19,7 @@ revision.
<!--mdtogo:Long-->

```
kpt alpha rpkg copy SOURCE_PACKAGE_REV_NAME TARGET_PACKAGE_NAME [flags]
kpt alpha rpkg copy SOURCE_PACKAGE_REV_NAME [flags]
```

#### Args
Expand All @@ -28,19 +28,15 @@ kpt alpha rpkg copy SOURCE_PACKAGE_REV_NAME TARGET_PACKAGE_NAME [flags]
SOURCE_PACKAGE_REV_NAME:
The name of the package revision that will be used as the source
for creating a new package revision.
TARGET_PACKAGE_NAME:
The name of the new package.
```

#### Flags

```
--repository
Repository in which the new package revision will be created.
--revision
Revision for the new package.
Revision for the new package. If this is not specified, the default
revision will be `latest + 1`. The default can only be used if the
latest package revision is of the format `^v[0-9]+$`.
```

<!--mdtogo-->
Expand All @@ -50,8 +46,8 @@ TARGET_PACKAGE_NAME:
<!--mdtogo:Examples-->

```shell
# create a new package foo from package blueprint-b47eadc99f3c525571d3834cc61b974453bc6be2
$ kpt alpha rpkg copy blueprint-b47eadc99f3c525571d3834cc61b974453bc6be2 foo --repository=blueprint --revision=v10 --namespace=default
# create a new package from package blueprint-b47eadc99f3c525571d3834cc61b974453bc6be2
$ kpt alpha rpkg copy blueprint-b47eadc99f3c525571d3834cc61b974453bc6be2 --revision=v10 --namespace=default
```

<!--mdtogo-->

0 comments on commit 4bec45f

Please sign in to comment.