File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1- Copyright (c) 2023 , Salesforce.com, Inc.
1+ Copyright (c) 2024 , Salesforce.com, Inc.
22All rights reserved.
33
44Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Original file line number Diff line number Diff line change 55 * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66 */
77
8-
9-
108import {
119 Messages ,
1210 Lifecycle ,
@@ -21,7 +19,7 @@ import { Duration } from '@salesforce/kit';
2119import { buildScratchOrgRequest } from '../../../shared/scratchOrgRequest.js' ;
2220import { buildStatus } from '../../../shared/scratchOrgOutput.js' ;
2321import { ScratchCreateResponse } from '../../../shared/orgTypes.js' ;
24- Messages . importMessagesDirectoryFromMetaUrl ( import . meta. url )
22+ Messages . importMessagesDirectoryFromMetaUrl ( import . meta. url ) ;
2523const messages = Messages . loadMessages ( '@salesforce/plugin-org' , 'create_scratch' ) ;
2624
2725export const secretTimeout = 60000 ;
@@ -79,6 +77,15 @@ export default class EnvCreateScratch extends SfCommand<ScratchCreateResponse> {
7977 'partner-group' ,
8078 'partner-professional' ,
8179 ] ,
80+ // eslint-disable-next-line @typescript-eslint/require-await
81+ parse : async ( value : string ) => {
82+ // the API expects partner editions in `partner <EDITION>` format.
83+ // so we replace the hyphen here with a space.
84+ if ( value . startsWith ( 'partner-' ) ) {
85+ return value . replace ( '-' , ' ' ) ;
86+ }
87+ return value ;
88+ } ,
8289 helpGroup : definitionFileHelpGroupName ,
8390 } ) ,
8491 'no-namespace' : Flags . boolean ( {
You can’t perform that action at this time.
0 commit comments