File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ export class Commander {
223223
224224 const renderLine = ( job : Job ) => {
225225 const needs = job . needs ?. filter ( n => ! n . project && ! n . pipeline ) . map ( n => n . job ) ;
226- const allowFailure = job . allowFailure ? "true " : "false" ;
226+ const allowFailure = job . allowFailure ? "true " : "false " ;
227227 let jobLine = chalk `{blueBright ${ job . name . padEnd ( jobNamePad ) } } ${ job . description . padEnd ( descriptionPadEnd ) } ` ;
228228 jobLine += chalk `{yellow ${ job . stage . padEnd ( stagePadEnd ) } } ${ job . when . padEnd ( whenPadEnd ) } ${ allowFailure . padEnd ( 11 ) } ` ;
229229 if ( needs ) {
@@ -268,7 +268,7 @@ export class Commander {
268268 writeStreams . stdout ( "name;description;stage;when;allowFailure;needs\n" ) ;
269269 jobs . forEach ( ( job ) => {
270270 const needs = job . needs ?. filter ( n => ! n . project && ! n . pipeline ) . map ( n => n . job ) . join ( "," ) ?? [ ] ;
271- writeStreams . stdout ( `${ job . name } ;"${ job . description } ";${ job . stage } ;${ job . when } ;${ job . allowFailure } ;[${ needs } ]\n` ) ;
271+ writeStreams . stdout ( `${ job . name } ;"${ job . description } ";${ job . stage } ;${ job . when } ;${ job . allowFailure ? "true" : "false" } ;[${ needs } ]\n` ) ;
272272 } ) ;
273273 }
274274
Original file line number Diff line number Diff line change @@ -251,10 +251,10 @@ export class Parser {
251251 let index = 0 ;
252252 if ( expandVariables ) {
253253 for ( const line of fileSplit ) {
254- interactiveMatch = ! interactiveMatch ? / # \s ? @ \s ? [ I i ] n t e r a c t i v e / . exec ( line ) : interactiveMatch ;
255- injectSSHAgent = ! injectSSHAgent ? / # \s ? @ \s ? [ I i ] n j e c t S S H A g e n t / . exec ( line ) : injectSSHAgent ;
256- noArtifactsToSourceMatch = ! noArtifactsToSourceMatch ? / # \s ? @ \s ? N o A r t i f a c t s T o S o u r c e / i. exec ( line ) : noArtifactsToSourceMatch ;
257- descriptionMatch = ! descriptionMatch ? / # \s ? @ \s ? [ D d ] e s c r i p t i o n (?< description > .* ) / . exec ( line ) : descriptionMatch ;
254+ interactiveMatch = interactiveMatch ?? / # \s ? @ \s ? [ I i ] n t e r a c t i v e / . exec ( line ) ;
255+ injectSSHAgent = injectSSHAgent ?? / # \s ? @ \s ? [ I i ] n j e c t S S H A g e n t / . exec ( line ) ;
256+ noArtifactsToSourceMatch = noArtifactsToSourceMatch ?? / # \s ? @ \s ? N o A r t i f a c t s T o S o u r c e / i. exec ( line ) ;
257+ descriptionMatch = descriptionMatch ?? / # \s ? @ \s ? [ D d ] e s c r i p t i o n (?< description > .* ) / . exec ( line ) ;
258258
259259 const jobMatch = / \w : / . exec ( line ) ;
260260 if ( jobMatch && ( interactiveMatch || descriptionMatch || injectSSHAgent || noArtifactsToSourceMatch ) ) {
You can’t perform that action at this time.
0 commit comments