Fixed conflict name between exec package and local exec function.
[src/xds/xds-cli.git] / cmd-exec.go
index 83743a3..3f1ee97 100644 (file)
@@ -31,7 +31,7 @@ func initCmdExec(cmdDef *[]cli.Command) {
        *cmdDef = append(*cmdDef, cli.Command{
                Name:   "exec",
                Usage:  "execute a command in XDS",
-               Action: exec,
+               Action: execCmd,
                Flags: []cli.Flag{
                        cli.StringFlag{
                                Name:   "id",
@@ -52,7 +52,7 @@ func initCmdExec(cmdDef *[]cli.Command) {
        })
 }
 
-func exec(ctx *cli.Context) error {
+func execCmd(ctx *cli.Context) error {
        prjID := ctx.String("id")
        rPath := ctx.String("rpath")
        sdkid := ctx.String("sdkid")