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: cmd/crank/xpkg/extract.go
+4-9Lines changed: 4 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -52,12 +52,7 @@ const (
52
52
errCreateOutputFile="failed to create output file"
53
53
errCreateGzipWriter="failed to create gzip writer"
54
54
errExtractPackageContents="failed to extract package contents"
55
-
)
56
-
57
-
const (
58
-
layerAnnotation="io.crossplane.xpkg"
59
-
baseAnnotationValue="base"
60
-
cacheContentExt=".gz"
55
+
cacheContentExt=".gz"
61
56
)
62
57
63
58
// fetchFn fetches a package from a source.
@@ -129,8 +124,8 @@ type extractCmd struct {
129
124
fetchfetchFn
130
125
131
126
Packagestring`arg:"" help:"Name of the package to extract. Must be a valid OCI image tag or a path if using --from-xpkg." optional:""`
132
-
FromDaemonbool`help:"Indicates that the image should be fetched from the Docker daemon." xor:"xp-extract-from"`
133
-
FromXpkgbool`help:"Indicates that the image should be fetched from a local xpkg. If package is not specified and only one exists in current directory it will be used." xor:"xp-extract-from"`
127
+
FromDaemonbool`help:"Indicates that the image should be fetched from the Docker daemon."`
128
+
FromXpkgbool`help:"Indicates that the image should be fetched from a local xpkg. If package is not specified and only one exists in current directory it will be used."`
134
129
Outputstring`default:"out.gz" help:"Package output file path. Extension must be .gz or will be replaced." short:"o"`
0 commit comments