Skip to content

Commit 3230c79

Browse files
authored
Merge pull request #8 from wenchajun/demo
Add fn demo command
2 parents dc4bf53 + 95c94b7 commit 3230c79

File tree

8 files changed

+680
-0
lines changed

8 files changed

+680
-0
lines changed

docs/demo.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# ofn demo
2+
3+
This command will help you to create a kind cluster to install OpenFunction and its demo.
4+
5+
## Parameters
6+
7+
```shell
8+
--region-cn Install OpenFunction with limited access to gcr.io or github.com.
9+
--auto-prune Remove the demo environment.
10+
--verbose Show verbose information.
11+
```
12+
13+
## Use Cases
14+
15+
### For users who have limited access to gcr.io or github.com
16+
17+
18+
```shell
19+
ofn demo --region-cn
20+
```
21+
22+

pkg/cmd/cmd.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Find more information at:
6060
cmd.AddCommand(subcommand.NewCmdGet(restClient, ioStreams))
6161
cmd.AddCommand(subcommand.NewCmdInstall(restClient, ioStreams))
6262
cmd.AddCommand(subcommand.NewCmdUninstall(restClient, ioStreams))
63+
cmd.AddCommand(subcommand.NewCmdDemo(restClient, ioStreams))
6364
return cmd
6465
}
6566

0 commit comments

Comments
 (0)