mirror of
https://github.com/empayre/fleet.git
synced 2024-11-08 01:38:57 +00:00
21 lines
318 B
Go
21 lines
318 B
Go
|
package main
|
||
|
|
||
|
import "github.com/urfave/cli"
|
||
|
|
||
|
const (
|
||
|
outfileFlagName = "outfile"
|
||
|
)
|
||
|
|
||
|
func outfileFlag() cli.Flag {
|
||
|
return cli.StringFlag{
|
||
|
Name: outfileFlagName,
|
||
|
Value: "",
|
||
|
EnvVar: "OUTFILE",
|
||
|
Usage: "Path to output file",
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func getOutfile(c *cli.Context) string {
|
||
|
return c.String(outfileFlagName)
|
||
|
}
|