File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export let cliSettings = {
55 cliMode : false ,
66 infoMessages : false ,
77 buildFile : "none" as BuildFiles ,
8+ withActions : false ,
89 fixIncludes : false ,
910 autoRename : false ,
1011 fileList : false ,
Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ async function main() {
5858 i ++ ;
5959 break ;
6060
61+ case `-wa` :
62+ cliSettings . withActions = true ;
63+ break ;
64+
6165 case '-nc' :
6266 case '--no-children' :
6367 cliSettings . makeFileNoChildren = true ;
@@ -95,6 +99,9 @@ async function main() {
9599 console . log ( `\t-bf make|bob|imd|json\tCreate build files of a specific format` ) ;
96100 console . log ( `\t\t\t\tExample: -bf make` ) ;
97101 console . log ( `` ) ;
102+ console . log ( `\t-wa\t\tWhen using '-bf make', use commands` ) ;
103+ console . log ( `\t\t\tthat are found in the 'actions.json' files.` ) ;
104+ console . log ( `` ) ;
98105 console . log ( `\t-bl <name>\tSet the BRANCHLIB environment variable based on ` ) ;
99106 console . log ( `\t\t\ta user provided branch name, and will write it out.` ) ;
100107 console . log ( `\t\t\tExample: -bl feature/123-cool-idea` ) ;
@@ -213,6 +220,12 @@ async function main() {
213220 break ;
214221 case `make` :
215222 const makeProj = new MakeProject ( cwd , targets , fs ) ;
223+
224+ // Enables the use of actions.json for commands
225+ if ( cliSettings . withActions ) {
226+ makeProj . useActions ( ) ;
227+ }
228+
216229 await makeProj . setupSettings ( ) ;
217230
218231 makeProj . setNoChildrenInBuild ( cliSettings . makeFileNoChildren ) ;
You can’t perform that action at this time.
0 commit comments