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:
Pedro Nasser
2017-03-01 22:55:48 -03:00
committed by Travis Reeder
parent 2772afb5f0
commit dea100d3d9
10 changed files with 139 additions and 188 deletions

View File

@@ -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",
},
}