File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export class sfProject {
3939 Logger . log ( messages . getMessage ( 'deployingFromManifest' ) ) ;
4040 const cmd = `sf project deploy start --manifest "${ manifestPath } " --target-org "${ username } " --async` ;
4141 Logger . log ( cmd ) ;
42- const cmdOutput = sfProject . executeCommand ( cmd ) ;
42+ const cmdOutput = sfProject . executeCommand ( cmd , true ) ;
4343 Logger . logVerbose ( `Deploy output: ${ cmdOutput } ` ) ;
4444 sfProject . processOutput ( cmdOutput ) ;
4545 }
@@ -64,9 +64,13 @@ export class sfProject {
6464 }
6565 }
6666
67- private static executeCommand ( cmd : string ) : string {
67+ private static executeCommand ( cmd : string , jsonOutput = false ) : string {
6868 try {
69- return cli . exec ( `${ cmd } --json` ) ;
69+ if ( jsonOutput ) {
70+ return cli . exec ( `${ cmd } --json` ) ;
71+ } else {
72+ return cli . exec ( `${ cmd } ` ) ;
73+ }
7074 } catch ( error ) {
7175 Logger . error ( messages . getMessage ( 'sfProjectCommandError' , [ String ( error ) ] ) ) ;
7276 throw error ;
You can’t perform that action at this time.
0 commit comments