File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import {
1515 SfError ,
1616} from '@salesforce/core' ;
1717import { SfCommand , Flags } from '@salesforce/sf-plugins-core' ;
18+ import { Duration } from '@salesforce/kit' ;
1819import { buildScratchOrgRequest } from '../../../shared/scratchOrgRequest' ;
1920import { buildStatus } from '../../../shared/scratchOrgOutput' ;
2021import { ScratchCreateResponse } from '../../../shared/orgTypes' ;
@@ -83,8 +84,7 @@ export default class EnvCreateScratch extends SfCommand<ScratchCreateResponse> {
8384 } ) ,
8485 'duration-days' : Flags . duration ( {
8586 unit : 'days' ,
86- defaultValue : 7 ,
87- required : true ,
87+ default : Duration . days ( 7 ) ,
8888 min : 1 ,
8989 max : 30 ,
9090 char : 'y' ,
@@ -93,7 +93,7 @@ export default class EnvCreateScratch extends SfCommand<ScratchCreateResponse> {
9393 } ) ,
9494 wait : Flags . duration ( {
9595 unit : 'minutes' ,
96- defaultValue : 5 ,
96+ default : Duration . minutes ( 5 ) ,
9797 min : 2 ,
9898 char : 'w' ,
9999 helpValue : '<minutes>' ,
You can’t perform that action at this time.
0 commit comments