File tree Expand file tree Collapse file tree 1 file changed +17
-14
lines changed Expand file tree Collapse file tree 1 file changed +17
-14
lines changed Original file line number Diff line number Diff line change @@ -18,20 +18,7 @@ The main commands supported by the CLI are:
18
18
19
19
## Getting started
20
20
21
- #### Build OpenFunction CLI
22
-
23
- You can use ` make build ` to build the OpenFunction CLI —— ` ofn ` .
24
- When the command is executed, you can find the artifact in the ` . /dist ` directory.
25
- Move it to the appropriate path in the ` PATH ` so that you can use it in your environment.
26
-
27
- ``` shell
28
- ~ # make build
29
- go fmt ./...
30
- /opt/openfunction/fn-cli/bin/goimports -w cmd/ pkg/ testdata/
31
- go vet ./...
32
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags " -s -w -X 'main.goversion=go version go1.16.7 linux/amd64'" \
33
- -o ./dist/fn_linux_amd64 cmd/main.go;
34
- ```
21
+ Visit [ ofn release] ( https://github.com/OpenFunction/cli/releases/ ) to select the ` ofn ` cli to deploy to your cluster.
35
22
36
23
### Use ofn to deploy OpenFunction
37
24
@@ -135,3 +122,19 @@ Enter 'y' to continue and 'n' to abort:
135
122
🚀 Completed in 1m21.683329262s.
136
123
` ` `
137
124
125
+ # ## Build OpenFunction CLI
126
+
127
+ You can also use ` make build` to build the OpenFunction CLI —— ` ofn` .
128
+ When the command is executed, you can find the artifact in the ` . /dist` directory.
129
+ Move it to the appropriate path in the ` PATH` so that you can use it in your environment.
130
+
131
+ ` ` ` shell
132
+ ~ # make build
133
+ go fmt ./...
134
+ /opt/openfunction/fn-cli/bin/goimports -w cmd/ pkg/ testdata/
135
+ go vet ./...
136
+ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags " -s -w -X 'main.goversion=go version go1.16.7 linux/amd64'" \
137
+ -o ./dist/fn_linux_amd64 cmd/main.go;
138
+ ` ` `
139
+
140
+ # ##
You can’t perform that action at this time.
0 commit comments