Files
fn-serverless/fnctl/run.go
C Cirello 5b3971060b Per language HOWTO's on writing functions (#208)
* fnctl: improve UX for howto's

* doc: go function howto

* fnctl: show the progress of build calls

* doc: php function howto

* doc: fix Go HOWTO

* doc: Node Functions HOWTO

* doc: Python Functions HOWTO

* doc: improve README files

* doc: ccirello -> USERNAME

* docs: fix Python example

Used an idiomatic method (isatty) to decide whether stdin must
be read or not.

* doc: fix go example

* fnctl: fix docker push output
2016-11-02 00:19:16 +01:00

19 lines
367 B
Go

package main
import (
"github.com/iron-io/functions_go"
"github.com/urfave/cli"
)
func run() cli.Command {
r := routesCmd{RoutesApi: functions.NewRoutesApi()}
return cli.Command{
Name: "run",
Usage: "run function",
ArgsUsage: "fnclt run appName /path",
Flags: append(confFlags(&r.Configuration), []cli.Flag{}...),
Action: r.run,
}
}