-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove language default and fix command flags #170
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ func init() { | |
buildCmd.Flags().StringVar(&image, "image", "", "Docker image name to build") | ||
buildCmd.Flags().StringVar(&handler, "handler", "", "Directory with handler for function, e.g. handler.js") | ||
buildCmd.Flags().StringVar(&functionName, "name", "", "Name of the deployed function") | ||
buildCmd.Flags().StringVar(&language, "lang", "node", "Programming language template") | ||
buildCmd.Flags().StringVar(&language, "lang", "", "Programming language template") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good edit. |
||
|
||
// Setup flags that are used only by this command (variables defined above) | ||
buildCmd.Flags().BoolVar(&nocache, "no-cache", false, "Do not use Docker's build cache") | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,18 +15,15 @@ import ( | |
) | ||
|
||
var ( | ||
verboseInvoke bool | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What happened to verboseInvoke? |
||
contentType string | ||
contentType string | ||
) | ||
|
||
func init() { | ||
// Setup flags that are used by multiple commands (variables defined in faas.go) | ||
invokeCmd.Flags().StringVar(&functionName, "name", "", "Name of the deployed function") | ||
invokeCmd.Flags().StringVar(&gateway, "gateway", defaultGateway, "Gateway URI") | ||
|
||
invokeCmd.Flags().StringVar(&language, "lang", "node", "Programming language template") | ||
invokeCmd.Flags().StringVar(&contentType, "content-type", "text/plain", "The content-type HTTP header such as application/json") | ||
invokeCmd.Flags().BoolVar(&verboseInvoke, "verbose", false, "Verbose output for the function list") | ||
|
||
faasCmd.AddCommand(invokeCmd) | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,12 +18,7 @@ var ( | |
|
||
func init() { | ||
// Setup flags that are used by multiple commands (variables defined in faas.go) | ||
listCmd.Flags().StringVar(&fprocess, "fprocess", "", "Fprocess to be run by the watchdog") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good refactor. |
||
listCmd.Flags().StringVar(&gateway, "gateway", defaultGateway, "Gateway URI") | ||
listCmd.Flags().StringVar(&handler, "handler", "", "Directory with handler for function, e.g. handler.js") | ||
listCmd.Flags().StringVar(&image, "image", "", "Docker image name to build") | ||
listCmd.Flags().StringVar(&language, "lang", "node", "Programming language template") | ||
listCmd.Flags().StringVar(&functionName, "name", "", "Name of the deployed function") | ||
|
||
listCmd.Flags().BoolVar(&verboseList, "verbose", false, "Verbose output for the function list") | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have an extra space here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@johnmccabe can you push this fixed? ^ extra space between = and node