Skip to content

Add fn demo command - #8

Merged
benjaminhuo merged 1 commit into
OpenFunction:mainfrom
wenchajun:demo
Dec 21, 2021
Merged

benjaminhuo merged 1 commit into
OpenFunction:mainfrom
wenchajun:demo

Conversation

@wenchajun

Copy link
Copy Markdown
Member

Add fn demo command

Signed-off-by: chengdehao [email protected]

@benjaminhuo

Copy link
Copy Markdown
Member

The binary shouldn't be put into the source repo maybe?
We can launch a release for cli to publish binaries

@wenchajun wenchajun changed the title [WIP]Add fn demo command Add fn demo command Dec 6, 2021
Comment thread docs/demo.md
Comment thread pkg/cmd/subcommand/demo.go Outdated
Comment thread pkg/cmd/subcommand/demo.go Outdated
Comment thread pkg/dependency/common/common.go Outdated
@wenchajun
wenchajun force-pushed the demo branch 2 times, most recently from 8009d27 to 454b017 Compare December 13, 2021 02:17
@benjaminhuo

benjaminhuo commented Dec 13, 2021

Copy link
Copy Markdown
Member

It's ready to review now? Please solve the conflict first, thanks @wenchajun

Comment thread docs/demo.md Outdated
Comment thread docs/demo.md Outdated
Comment thread docs/demo.md Outdated
Comment thread docs/demo.md Outdated
Comment thread docs/demo.md Outdated
Comment thread pkg/cmd/subcommand/demo.go Outdated
Comment thread pkg/cmd/subcommand/demo.go Outdated
Comment thread pkg/cmd/subcommand/demo.go Outdated
Comment thread pkg/cmd/subcommand/demo.go Outdated
Comment thread pkg/cmd/subcommand/demo.go Outdated
Comment thread pkg/cmd/subcommand/demo.go Outdated
Comment thread pkg/cmd/subcommand/demo.go Outdated
Comment thread pkg/cmd/subcommand/demo.go Outdated

func init() {
w = os.Stdout
availableVersions = []string{"v0.3.1", "v0.4.0", "latest"}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to figure out a better way instead of hardcoding supported versions

Comment thread pkg/cmd/subcommand/demo.go
Comment thread pkg/components/common/common.go Outdated
Comment thread pkg/components/common/common.go Outdated
Comment thread pkg/components/linux/linux.go Outdated
@wenchajun
wenchajun force-pushed the demo branch 3 times, most recently from 4eb8724 to 4ac135e Compare December 15, 2021 08:55
@benjaminhuo

Copy link
Copy Markdown
Member

@wenchajun would you make corresponding changes to the version list similar to #14 ?

@wenchajun

Copy link
Copy Markdown
Member Author

@wenchajun would you make corresponding changes to the version list similar to #14 ?

Yes,We had a discussion and I was going to make the demo components independent to get a lower coupling. I will modify this demo architecture and update it.

@wenchajun
wenchajun force-pushed the demo branch 4 times, most recently from f263a45 to c6fa7ca Compare December 20, 2021 14:20
Comment thread docs/demo.md Outdated
Comment thread pkg/cmd/subcommand/demo.go Outdated
Comment thread pkg/cmd/subcommand/demo.go Outdated
Comment thread pkg/cmd/subcommand/demo.go
Comment thread pkg/cmd/subcommand/demo.go Outdated
Comment thread pkg/cmd/subcommand/demo.go Outdated
Comment thread pkg/cmd/subcommand/demo.go Outdated
Comment thread pkg/cmd/subcommand/demo.go Outdated
Comment thread pkg/cmd/util/print.go Outdated
Comment thread testdata/demo/v0.4.0/function-sample-serving-only.yaml Outdated
@wenchajun
wenchajun force-pushed the demo branch 2 times, most recently from 699cd36 to 3b3aa01 Compare December 21, 2021 02:38
Comment thread pkg/cmd/subcommand/demo.go Outdated

cmd.Flags().BoolVar(&i.Verbose, "verbose", false, "Show verbose information.")
cmd.Flags().BoolVar(&i.RegionCN, "region-cn", false, "For users who have limited access to gcr.io or github.com.")
cmd.Flags().BoolVar(&i.AutoPrune, "auto-prune", true, "Used to specify the version of OpenFunction to be uninstalled.")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Used to specify the version of OpenFunction to be uninstalled." is not correct for auto-prune

Comment thread pkg/cmd/subcommand/demo.go Outdated

cmd.Flags().BoolVar(&i.Verbose, "verbose", false, "Show verbose information.")
cmd.Flags().BoolVar(&i.RegionCN, "region-cn", false, "For users who have limited access to gcr.io or github.com.")
cmd.Flags().BoolVar(&i.AutoPrune, "auto-prune", true, "Automatic cleaning of the current environment.")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automatically clean up the demo environment.

Signed-off-by: chengdehao <[email protected]>
@benjaminhuo
benjaminhuo merged commit 3230c79 into OpenFunction:main Dec 21, 2021
@wenchajun
wenchajun deleted the demo branch January 3, 2022 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants