Skip to content

Commit 8654669

Browse files
committed
fix: add command doc
Signed-off-by: zongz <[email protected]>
1 parent 118aab4 commit 8654669

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

cmd/kcl/commands/mod_pull.go

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,19 @@ const (
2727
kcl mod pull --git ssh://github.com/kcl-lang/konfig --tag v0.4.0
2828
2929
# Pull the module from the OCI Registry by flag
30-
kcl mod pull --oci https://ghcr.io/kcl-lang/helloworld --tag 0.1.0`
30+
kcl mod pull --oci https://ghcr.io/kcl-lang/helloworld --tag 0.1.0
31+
32+
# Pull the module from the OCI Registry by flag and specify the module spce
33+
kcl mod pull subhelloworld --oci https://ghcr.io/kcl-lang/helloworld --tag 0.1.4
34+
35+
# Pull the module from the OCI Registry by flag and specify the module spce with version
36+
kcl mod pull subhelloworld:0.0.1 --oci https://ghcr.io/kcl-lang/helloworld --tag 0.1.4
37+
38+
# Pull the module from the Git Repo by flag and specify the module spce
39+
kcl mod pull cc --git git://github.com/kcl-lang/flask-demo-kcl-manifests.git --commit 8308200
40+
41+
# Pull the module from the Git Repo by flag and specify the module spce with version
42+
kcl mod pull cc:0.0.1 --git git://github.com/kcl-lang/flask-demo-kcl-manifests.git --commit 8308200`
3143
)
3244

3345
// NewModPullCmd returns the mod pull command.

0 commit comments

Comments
 (0)