@@ -3,8 +3,6 @@ import { nspawn as spawn, getCLIPath, getSocialProviders } from 'amplify-codegen
3
3
export function addEnvironment ( cwd : string , settings : { envName : string ; numLayers ?: number } ) : Promise < void > {
4
4
return new Promise ( ( resolve , reject ) => {
5
5
const chain = spawn ( getCLIPath ( ) , [ 'env' , 'add' ] , { cwd, stripColors : true } )
6
- . wait ( 'Do you want to use an existing environment?' )
7
- . sendLine ( 'n' )
8
6
. wait ( 'Enter a name for the environment' )
9
7
. sendLine ( settings . envName )
10
8
. wait ( 'Select the authentication method you want to use:' )
@@ -29,8 +27,6 @@ export function addEnvironment(cwd: string, settings: { envName: string; numLaye
29
27
export function addEnvironmentWithImportedAuth ( cwd : string , settings : { envName : string ; currentEnvName : string } ) : Promise < void > {
30
28
return new Promise ( ( resolve , reject ) => {
31
29
spawn ( getCLIPath ( ) , [ 'env' , 'add' ] , { cwd, stripColors : true } )
32
- . wait ( 'Do you want to use an existing environment?' )
33
- . sendConfirmNo ( )
34
30
. wait ( 'Enter a name for the environment' )
35
31
. sendLine ( settings . envName )
36
32
. wait ( 'Select the authentication method you want to use:' )
@@ -143,8 +139,6 @@ export function addEnvironmentHostedUI(cwd: string, settings: { envName: string
143
139
const { FACEBOOK_APP_ID , FACEBOOK_APP_SECRET , GOOGLE_APP_ID , GOOGLE_APP_SECRET , AMAZON_APP_ID , AMAZON_APP_SECRET } = getSocialProviders ( ) ;
144
140
return new Promise ( ( resolve , reject ) => {
145
141
spawn ( getCLIPath ( ) , [ 'env' , 'add' ] , { cwd, stripColors : true } )
146
- . wait ( 'Do you want to use an existing environment?' )
147
- . sendLine ( 'n' )
148
142
. wait ( 'Enter a name for the environment' )
149
143
. sendLine ( settings . envName )
150
144
. wait ( 'Select the authentication method you want to use:' )
0 commit comments