forked from asyncapi/saunter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'remotes/smoerijf/asyncapi#196-Publish-a…
…-global-dotnet-tool' into asyncapi#197-Produce-AsyncAPI-documents-at-build-time # Conflicts: # src/AsyncAPI.Saunter.Generator.Cli/Commands/TofileInternal.cs
- Loading branch information
Showing
8 changed files
with
28 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
# AsyncApi Generator.Cli Tool | ||
A dotnet tool to generate AsyncAPI specification files based of dotnet DLL (The application itself). | ||
A dotnet tool to generate AsyncAPI specification files based of a dotnet DLL (The application itself). | ||
|
||
## Tool usage | ||
``` | ||
dotnet asyncapi.net tofile --output [output-path] --format [json,yml,yaml] --doc [asyncapi-document-name] [startup-assembly] | ||
dotnet asyncapi tofile --output [output-path] --format [json,yml,yaml] --doc [asyncapi-document-name] [startup-assembly] | ||
``` | ||
startup-assembly: the file path to the entrypoint dotnet DLL that hosts AsyncAPI document(s). | ||
|
||
## Tool options | ||
--doc: The name of the AsyncAPI document as defined in the startup class by the ```.ConfigureNamedAsyncApi()```-method. If not specified, all documents will be exported. | ||
--output: relative path where the AsyncAPI will be output [defaults to stdout] | ||
--filename: the template for the outputted file names. Default: "{document}_asyncapi.{extension}" | ||
--format: the output formats to generate, can be a combination of json, yml and/or yaml. File extension is appended to the output path. | ||
--env: define environment variable(s) for the application | ||
- _--doc_: The name of the AsyncAPI document as defined in the startup class by the ```.ConfigureNamedAsyncApi()```-method. If only ```.AddAsyncApiSchemaGeneration()``` is used, the document is unnamed and will always be exported. If not specified, all documents will be exported. | ||
- _--output_: relative path where the AsyncAPI will be output [defaults to stdout] | ||
- _--filename_: the template for the outputted file names. Default: "{document}_asyncapi.{extension}" | ||
- _--format_: the output formats to generate, can be a combination of json, yml and/or yaml. File extension is appended to the output path. | ||
- _--env_: define environment variable(s) for the application | ||
|
||
## Install the Generator.Cli dotnet Tool | ||
``` | ||
dotnet tool install --global AsyncAPI.Saunter.Generator.Cli | ||
``` | ||
After installing the tool globally, it is available using commands: ```dotnet asyncapi``` or ```dotnet-asyncapi``` | ||
|
||
Want to learn more about .NET tools? Or want to install it local using a manifest? | ||
[Check out this Microsoft page on how to manage .NET tools](https://learn.microsoft.com/en-us/dotnet/core/tools/global-tools) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.