@@ -18,7 +18,9 @@ class StackCloneCommand extends Command {
1818 type : cloneType ,
1919 'stack-name' : stackName ,
2020 'source-branch' : sourceStackBranch ,
21+ 'source-branch-alias' : sourceStackBranchAlias ,
2122 'target-branch' : targetStackBranch ,
23+ 'target-branch-alias' : targetStackBranchAlias ,
2224 'source-stack-api-key' : sourceStackApiKey ,
2325 'destination-stack-api-key' : destinationStackApiKey ,
2426 'source-management-token-alias' : sourceManagementTokenAlias ,
@@ -47,8 +49,14 @@ class StackCloneCommand extends Command {
4749 if ( sourceStackBranch ) {
4850 config . sourceStackBranch = sourceStackBranch ;
4951 }
52+ if ( sourceStackBranchAlias ) {
53+ config . sourceStackBranchAlias = sourceStackBranchAlias ;
54+ }
5055 if ( targetStackBranch ) {
5156 config . targetStackBranch = targetStackBranch ;
57+ }
58+ if ( targetStackBranchAlias ) {
59+ config . targetStackBranchAlias = targetStackBranchAlias ;
5260 }
5361 if ( sourceStackApiKey ) {
5462 config . source_stack = sourceStackApiKey ;
@@ -202,11 +210,25 @@ StackCloneCommand.flags = {
202210 required : false ,
203211 multiple : false ,
204212 description : 'Branch of the source stack.' ,
213+ exclusive : [ 'source-branch-alias' ]
214+ } ) ,
215+ 'source-branch-alias' : flags . string ( {
216+ required : false ,
217+ multiple : false ,
218+ description : 'Alias of Branch of the source stack.' ,
219+ exclusive : [ 'source-branch' ]
205220 } ) ,
206221 'target-branch' : flags . string ( {
207222 required : false ,
208223 multiple : false ,
209224 description : 'Branch of the target stack.' ,
225+ exclusive : [ 'target-branch-alias' ]
226+ } ) ,
227+ 'target-branch-alias' : flags . string ( {
228+ required : false ,
229+ multiple : false ,
230+ description : 'Alias of Branch of the target stack.' ,
231+ exclusive : [ 'target-branch' ]
210232 } ) ,
211233 'source-management-token-alias' : flags . string ( {
212234 required : false ,
@@ -229,8 +251,8 @@ StackCloneCommand.flags = {
229251 multiple : false ,
230252 options : [ 'a' , 'b' ] ,
231253 description : ` Type of data to clone. You can select option a or b.
232- a) Structure (all modules except entries & assets).
233- b) Structure with content (all modules including entries & assets).
254+ a) Structure (all modules except entries & assets).
255+ b) Structure with content (all modules including entries & assets).
234256 ` ,
235257 } ) ,
236258 'source-stack-api-key' : flags . string ( {
0 commit comments