function code download using HTTP URL (#100)

* function code download using HTTP URL

* Addressing review comments

* Updating help-text for function
This commit is contained in:
Kaustubh Phatak
2017-02-02 15:14:00 -08:00
committed by Soam Vasani
parent 2725da6b1b
commit 76d4ea7b04
2 changed files with 37 additions and 6 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ func main() {
// functions
fnNameFlag := cli.StringFlag{Name: "name", Usage: "function name"}
fnEnvNameFlag := cli.StringFlag{Name: "env", Usage: "environment name for function"}
fnCodeFlag := cli.StringFlag{Name: "code", Usage: "file containing source code, or - for stdin"}
fnCodeFlag := cli.StringFlag{Name: "code", Usage: "local path or URL for source code"}
fnUidFlag := cli.StringFlag{Name: "uid", Usage: "function uid, optional (use latest if unspecified)"}
fnSubcommands := []cli.Command{
{Name: "create", Usage: "Create new function (and optionally, an HTTP route to it)", Flags: []cli.Flag{fnNameFlag, fnEnvNameFlag, fnCodeFlag, htUrlFlag, htMethodFlag}, Action: fnCreate},