mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fn improvements: (#560)
- standardized required args validation - routes create/update now prioritize args, over flags, over funcfile configuration - removed deadcode
This commit is contained in:
committed by
Travis Reeder
parent
2772afb5f0
commit
dea100d3d9
@@ -17,7 +17,7 @@ func run() cli.Command {
|
||||
return cli.Command{
|
||||
Name: "run",
|
||||
Usage: "run a function locally",
|
||||
ArgsUsage: "USERNAME/image:tag",
|
||||
ArgsUsage: "[username/image:tag]",
|
||||
Flags: append(runflags(), []cli.Flag{}...),
|
||||
Action: r.run,
|
||||
}
|
||||
@@ -36,7 +36,7 @@ func runflags() []cli.Flag {
|
||||
Usage: "select container links for the function",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "method",
|
||||
Name: "method",
|
||||
Usage: "http method for function",
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user