You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace opaque string types with proper time.Time for the
recreate-vms-created-before and vms-created-before flags. This provides
type safety, validation at parse time, and clearer error messages for
invalid RFC 3339 timestamps.
- Add TimeArg type with UnmarshalFlag for parsing RFC 3339 timestamps
- Update DeployOpts and RecreateOpts to use TimeArg
- Update director UpdateOpts and RecreateOpts to use time.Time
- Add comprehensive tests for TimeArg parsing and formatting
Copy file name to clipboardExpand all lines: cmd/opts/opts.go
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -505,7 +505,7 @@ type DeployOpts struct {
505
505
506
506
Recreatebool`long:"recreate" description:"Recreate all VMs in deployment"`
507
507
RecreatePersistentDisksbool`long:"recreate-persistent-disks" description:"Recreate all persistent disks in deployment"`
508
-
RecreateVMsCreatedBeforestring`long:"recreate-vms-created-before" description:"Only recreate VMs created before the given RFC 3339 timestamp (requires --recreate)"`
508
+
RecreateVMsCreatedBeforeTimeArg`long:"recreate-vms-created-before" description:"Only recreate VMs created before the given RFC 3339 timestamp (requires --recreate)"`
509
509
Fixbool`long:"fix" description:"Recreate an instance with an unresponsive agent instead of erroring"`
510
510
FixReleasesbool`long:"fix-releases" description:"Reupload releases in manifest and replace corrupt or missing jobs/packages"`
511
511
SkipDrain []boshdir.SkipDrain`long:"skip-drain" value-name:"[INSTANCE-GROUP[/INSTANCE-ID]]" description:"Skip running drain and pre-stop scripts for specific instance groups" optional:"true" optional-value:"*"`
0 commit comments