Skip to content

Commit 4bec45f

Browse files
authored
update kpt alpha rpkg copy docs (#3135)
1 parent 6008784 commit 4bec45f

File tree

2 files changed

+12
-20
lines changed
  • internal/docs/generated/rpkgdocs
  • site/reference/cli/alpha/rpkg/copy

2 files changed

+12
-20
lines changed

internal/docs/generated/rpkgdocs/docs.go

Lines changed: 6 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/reference/cli/alpha/rpkg/copy/README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ revision.
1919
<!--mdtogo:Long-->
2020

2121
```
22-
kpt alpha rpkg copy SOURCE_PACKAGE_REV_NAME TARGET_PACKAGE_NAME [flags]
22+
kpt alpha rpkg copy SOURCE_PACKAGE_REV_NAME [flags]
2323
```
2424

2525
#### Args
@@ -28,19 +28,15 @@ kpt alpha rpkg copy SOURCE_PACKAGE_REV_NAME TARGET_PACKAGE_NAME [flags]
2828
SOURCE_PACKAGE_REV_NAME:
2929
The name of the package revision that will be used as the source
3030
for creating a new package revision.
31-
32-
TARGET_PACKAGE_NAME:
33-
The name of the new package.
3431
```
3532

3633
#### Flags
3734

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

4642
<!--mdtogo-->
@@ -50,8 +46,8 @@ TARGET_PACKAGE_NAME:
5046
<!--mdtogo:Examples-->
5147

5248
```shell
53-
# create a new package foo from package blueprint-b47eadc99f3c525571d3834cc61b974453bc6be2
54-
$ kpt alpha rpkg copy blueprint-b47eadc99f3c525571d3834cc61b974453bc6be2 foo --repository=blueprint --revision=v10 --namespace=default
49+
# create a new package from package blueprint-b47eadc99f3c525571d3834cc61b974453bc6be2
50+
$ kpt alpha rpkg copy blueprint-b47eadc99f3c525571d3834cc61b974453bc6be2 --revision=v10 --namespace=default
5551
```
5652

5753
<!--mdtogo-->

0 commit comments

Comments
 (0)