88import { Interfaces } from '@oclif/core' ;
99import {
1010 Flags ,
11- SfCommand ,
11+ loglevel ,
12+ optionalHubFlagWithDeprecations ,
1213 optionalOrgFlagWithDeprecations ,
1314 orgApiVersionFlagWithDeprecations ,
1415 parseVarArgs ,
15- optionalHubFlagWithDeprecations ,
16- loglevel ,
16+ SfCommand ,
1717} from '@salesforce/sf-plugins-core' ;
1818import {
1919 AuthFields ,
20- StateAggregator ,
2120 Config ,
2221 Lifecycle ,
22+ Logger ,
2323 Messages ,
24- OrgTypes ,
2524 OrgConfigProperties ,
25+ OrgTypes ,
2626 ResultEvent ,
2727 SandboxEvents ,
2828 SandboxProcessObject ,
2929 SandboxUserAuthResponse ,
30- SfError ,
31- StatusEvent ,
3230 ScratchOrgInfo ,
3331 ScratchOrgRequest ,
34- Logger ,
32+ SfError ,
33+ StateAggregator ,
34+ StatusEvent ,
3535} from '@salesforce/core' ;
3636import { createSandboxRequest } from '../../../shared/sandboxRequest' ;
3737import { SandboxReporter } from '../../../shared/sandboxReporter' ;
@@ -48,6 +48,7 @@ export interface ScratchOrgProcessObject {
4848}
4949
5050export type CreateResult = ScratchOrgProcessObject | SandboxProcessObject ;
51+
5152export class Create extends SfCommand < CreateResult > {
5253 public static readonly summary = messages . getMessage ( 'summary' ) ;
5354 public static readonly description = messages . getMessage ( 'description' ) ;
@@ -63,7 +64,10 @@ export class Create extends SfCommand<CreateResult> {
6364 public static readonly strict = false ;
6465
6566 public static readonly flags = {
66- 'target-org' : optionalOrgFlagWithDeprecations ,
67+ 'target-org' : {
68+ ...optionalOrgFlagWithDeprecations ,
69+ summary : messages . getMessage ( 'flags.targetOrg.summary' ) ,
70+ } ,
6771 'target-dev-hub' : optionalHubFlagWithDeprecations ,
6872 'api-version' : orgApiVersionFlagWithDeprecations ,
6973 loglevel,
0 commit comments