File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 11version : 0.0.1
22provider :
33 name : aliyun
4- region : cn-chengdu
4+ region : cn-hangzhou
55
66vars :
77 testv : testVarValue
Original file line number Diff line number Diff line change 11import { constructActionContext , logger , rosStackDelete } from '../common' ;
22
3- export const destroyStack = async ( stackName : string ) => {
4- const context = constructActionContext ( { stackName } ) ;
3+ export const destroyStack = async ( stackName : string , options : { location : string } ) => {
4+ const context = constructActionContext ( { stackName, ... options } ) ;
55 logger . info ( `Destroying stack ${ stackName } ...` ) ;
66 await rosStackDelete ( context ) ;
77} ;
Original file line number Diff line number Diff line change @@ -81,9 +81,10 @@ program
8181
8282program
8383 . command ( 'destroy <stackName>' )
84+ . option ( '-f, --file <path>' , 'specify the yaml file' )
8485 . description ( 'destroy serverless stack' )
85- . action ( async ( stackName ) => {
86- await destroyStack ( stackName ) ;
86+ . action ( async ( stackName , { file } ) => {
87+ await destroyStack ( stackName , { location : file } ) ;
8788 } ) ;
8889
8990program . parse ( ) ;
You can’t perform that action at this time.
0 commit comments