Porting remainder of #796

This commit is contained in:
2022-04-22 15:00:43 -04:00
parent 44958693a1
commit 75e4ee69e9
18 changed files with 112 additions and 12 deletions

View File

@@ -72,6 +72,7 @@ type TimestampFlag struct {
DefaultText string
HasBeenSet bool
Destination *Timestamp
Category string
}
// IsSet returns whether or not the flag has been set through env or file
@@ -105,6 +106,11 @@ func (f *TimestampFlag) GetUsage() string {
return f.Usage
}
// GetCategory returns the category for the flag
func (f *TimestampFlag) GetCategory() string {
return f.Category
}
// GetValue returns the flags value as string representation and an empty
// string if the flag takes no value at all.
func (f *TimestampFlag) GetValue() string {