Skip to content

Commit

Permalink
adopt tsp-client command instead of pwsh script (#8723)
Browse files Browse the repository at this point in the history
* adopt tsp-client command instead of pwsh script

* update

* ”update”

* Revert "”update”"

This reverts commit abe8f14.
  • Loading branch information
kazrael2119 authored Aug 13, 2024
1 parent 34de2dc commit dd35ef2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ export async function generateRLCInPipeline(options: {
});
logger.logGreen("End with TypeSpec command.");
} else {
logger.logGreen("Run ./eng/common/scripts/TypeSpec-Project-Process.ps1 script directly.");
logger.logGreen("Run tsp-client.");
const tspDefDir = path.join(options.swaggerRepo, options.typespecProject);
const scriptCommand = ['pwsh', './eng/common/scripts/TypeSpec-Project-Process.ps1', tspDefDir, options.gitCommitId, options.swaggerRepoUrl].join(" ");
const scriptCommand = ['tsp-client', 'init', '--debug', '--tsp-config', path.join(tspDefDir, 'tspconfig.yaml'), '--local-spec-repo', tspDefDir, '--repo', options.swaggerRepo, '--commit', options.gitCommitId].join(" ");
logger.logGreen(`${scriptCommand}`);
execSync(scriptCommand, {stdio: 'inherit'});
logger.logGreen("End with ./eng/common/scripts/TypeSpec-Project-Process.ps1 script.");
logger.logGreen("End with tsp-client");
}
}
} else {
Expand Down

0 comments on commit dd35ef2

Please sign in to comment.