Skip to content

Commit

Permalink
Add dotnet run command
Browse files Browse the repository at this point in the history
  • Loading branch information
markcowl committed Jan 24, 2025
1 parent 5e780ed commit 7d3ffc4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/http-server-csharp/src/cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function main() {
"boolean-negation": false,
})
.command(
"scaffold <project-directory> <path-to-spec>",
"scaffold [--use-swaggerui] <project-directory> <path-to-spec>",
"Generate a complete project with mock implementation at the given project-directory for the given spec. This required dotnet 9: https://dotnet.microsoft.com/download.",
(cmd) => {
return cmd
Expand Down Expand Up @@ -89,6 +89,9 @@ async function main() {
result = await runScriptAsync("npx", compileArgs);
if (result === 0) {
console.log(pc.bold(`Your project was successfully created at "${projectDir}"`));
console.log(
`You can build and start the project using 'dotnet run --project ${projectDir}'`,
);
} else {
console.log(pc.bold("There were one or more errors"));
if (useSwagger) {
Expand Down

0 comments on commit 7d3ffc4

Please sign in to comment.