woodpecker-helm3/cmd/drone-helm/main.go
2019-12-03 09:50:15 -08:00

36 lines
529 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package main
import (
"fmt"
"os"
"github.com/urfave/cli"
)
func main() {
_ = fmt.Println
_ = os.Exit
app := cli.NewApp()
app.Name = "helm plugin"
app.Usage = "helm plugin"
app.Action = run
app.Version = "0.0.1α"
app.Flags = []cli.Flag{
cli.StringFlag{
Name: "echo, e",
Usage: "this text'll be ech'll",
EnvVar: "ECHO",
},
}
if err := app.Run(os.Args); err != nil {
fmt.Fprintf(os.Stderr, "%s\n", err.Error())
}
}
func run(c *cli.Context) error {
fmt.Println(c.String("echo"))
return nil
}