github.com/devcamcar/cli@v0.0.0-20181107134215-706a05759d18/commands/call.go (about) 1 package commands 2 3 import ( 4 "fmt" 5 6 "github.com/fnproject/fn_go/provider" 7 "github.com/urfave/cli" 8 ) 9 10 type callCmd struct { 11 provider provider.Provider 12 } 13 14 // CallCommand returns call cli.command 15 func CallCommand() cli.Command { 16 cl := callCmd{} 17 return cli.Command{ 18 Name: "call", 19 Usage: "\tPrompts for migration.", 20 Aliases: []string{"cl"}, 21 ArgsUsage: "", 22 Category: "DEVELOPMENT COMMANDS", 23 Description: "This command no longer executes a function, instead it prompts users to migrate their routes to fn/triggers.", 24 Action: cl.Call, 25 } 26 } 27 28 func (cl *callCmd) Call(c *cli.Context) { 29 fmt.Println("Using `fn call` to call Routes is no longer supported, please use `fn invoke` to invoke a Function.") 30 }