Skip to content

Commit d2a4ff6

Browse files
committed
Update domain port to host port
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent f4963a8 commit d2a4ff6

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

commands/invoke.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ var invokeCmd = &cobra.Command{
5151
Use: `invoke FUNCTION_NAME [--gateway GATEWAY_URL] [--content-type CONTENT_TYPE] [--query PARAM=VALUE] [--header PARAM=VALUE] [--method HTTP_METHOD]`,
5252
Short: "Invoke an OpenFaaS function",
5353
Long: `Invokes an OpenFaaS function and reads from STDIN for the body of the request`,
54-
Example: ` faas-cli invoke echo --gateway https://domain:port
55-
faas-cli invoke echo --gateway https://domain:port --content-type application/json
54+
Example: ` faas-cli invoke echo --gateway https://host:port
55+
faas-cli invoke echo --gateway https://host:port --content-type application/json
5656
faas-cli invoke env --query repo=faas-cli --query org=openfaas
5757
faas-cli invoke env --header X-Ping-Url=http://request.bin/etc
5858
faas-cli invoke resize-img --async -H "X-Callback-Url=http://gateway:8080/function/send2slack" < image.png

commands/new_function.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func init() {
4848

4949
// newFunctionCmd displays newFunction information
5050
var newFunctionCmd = &cobra.Command{
51-
Use: "new FUNCTION_NAME --lang=FUNCTION_LANGUAGE [--gateway=http://domain:port] | --list | --append=STACK_FILE)",
51+
Use: "new FUNCTION_NAME --lang=FUNCTION_LANGUAGE [--gateway=http://host:port] | --list | --append=STACK_FILE)",
5252
Short: "Create a new template in the current folder with the name given as name",
5353
Long: `The new command creates a new function based upon hello-world in the given
5454
language or type in --list for a list of languages available.`,

commands/store_describe.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var storeDescribeCmd = &cobra.Command{
2323
Use: `describe (FUNCTION_NAME|FUNCTION_TITLE) [--url STORE_URL]`,
2424
Short: "Show details of OpenFaaS function from a store",
2525
Example: ` faas-cli store describe NodeInfo
26-
faas-cli store describe NodeInfo --url https://domain:port/store.json`,
26+
faas-cli store describe NodeInfo --url https://host:port/store.json`,
2727
Aliases: []string{"inspect"},
2828
RunE: runStoreDescribe,
2929
}

commands/store_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var storeListCmd = &cobra.Command{
2626
Short: "List available OpenFaaS functions in a store",
2727
Example: ` faas-cli store list
2828
faas-cli store list --verbose
29-
faas-cli store list --url https://domain:port/store.json`,
29+
faas-cli store list --url https://host:port/store.json`,
3030
RunE: runStoreList,
3131
}
3232

0 commit comments

Comments
 (0)