Commit cc4b07c4
cc4b07c457b2Merged
Dmitriy Zhilyaev <[email protected]> ยท 2 years ago ยท 1 file ยท ~1 modified
Description
feat: PathFlag
Signed-off-by: Dmitriy Zhilyaev [email protected]
Details
- Commit
- cc4b07c457b2
- Parent
- 4519c2c5c428
pkg/action/flags.gomodifiedView file
@@ -12,7 +12,7 @@
1212
1313
// flagPlandir pass val to urfave flag.1414
func flagPlandir(v *string) cli.Flag {15-
return &cli.StringFlag{15+
return &cli.PathFlag{1616
Name: "plandir",1717
Aliases: []string{"p"},1818
Value: plan.Dir,@@ -49,7 +49,7 @@
4949
5050
// flagYmlFile pass val to urfave flag.5151
func flagYmlFile(v *string) cli.Flag {52-
return &cli.StringFlag{52+
return &cli.PathFlag{5353
Name: "file",5454
Category: "YML",5555
Aliases: []string{"f"},@@ -62,7 +62,7 @@
6262
6363
// flagTplFile pass val to urfave flag.6464
func flagTplFile(v *string) cli.Flag {65-
return &cli.StringFlag{65+
return &cli.PathFlag{6666
Name: "tpl",6767
Category: "YML",6868
Value: "helmwave.yml.tpl",