forked from toolshed/abra
		
	chore: go mod tidy / vendor / make deps
This commit is contained in:
		
							
								
								
									
										8
									
								
								vendor/github.com/spf13/pflag/time.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/github.com/spf13/pflag/time.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @ -48,7 +48,13 @@ func (d *timeValue) Type() string { | ||||
| 	return "time" | ||||
| } | ||||
|  | ||||
| func (d *timeValue) String() string { return d.Time.Format(time.RFC3339Nano) } | ||||
| func (d *timeValue) String() string { | ||||
| 	if d.Time.IsZero() { | ||||
| 		return "" | ||||
| 	} else { | ||||
| 		return d.Time.Format(time.RFC3339Nano) | ||||
| 	} | ||||
| } | ||||
|  | ||||
| // GetTime return the time value of a flag with the given name | ||||
| func (f *FlagSet) GetTime(name string) (time.Time, error) { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user