Add TakesFile
indicator to flag
This new member of `Flag` indicates if the flag expects a file as input. This is especially useful for documentation and shell completion purposes. Signed-off-by: Sascha Grunert <sgrunert@suse.com>
This commit is contained in:
@@ -17,6 +17,7 @@ type {{ $flag.Name }}Flag struct {
|
||||
FilePath string
|
||||
Required bool
|
||||
Hidden bool
|
||||
TakesFile bool
|
||||
{{- if eq $flag.Value true }}
|
||||
Value {{ $flag.Type }}
|
||||
{{- end }}
|
||||
|
Reference in New Issue
Block a user