-
-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- delete unnecessary warning - add more context to the changeset documentation. - modify deprecate-cli.js-ag.md - -o and -p instead of --output and --param - delete enable watch mode part in the deprecation readMe - delete replace cli.js in postinstall.js with ag - add a link to the deprecation guide in the postinstall.js - add an installation url in the postinstall.js
- Loading branch information
Showing
4 changed files
with
29 additions
and
31 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,29 +1,33 @@ | ||
const migrationGuideUrl = '../docs/deprecate-cli.js-ag.md' | ||
const installationGuideUrl = 'https://github.com/asyncapi/website/blob/master/assets/docs/fragments/cli-installation.md' | ||
|
||
console.log(` | ||
************************************* | ||
* * | ||
* DEPRECATION NOTICE * | ||
* * | ||
************************************* | ||
The use of 'Cli.js' for documentation generation is deprecated and will be removed in future releases. | ||
The use of 'ag' for documentation generation is deprecated and will be removed in future releases. | ||
Please migrate to the new AsyncAPI CLI using the following guide: | ||
1. Install AsyncAPI CLI: | ||
$ npm install -g @asyncapi/cli | ||
For other installation methods, visit ${installationGuideUrl} | ||
2. Update your commands: | ||
Replace the deprecated 'Cli.js' commands with their AsyncAPI CLI equivalents. | ||
Replace the deprecated 'ag' commands with their AsyncAPI CLI equivalents. | ||
Example Migration: | ||
Before Migration (Using 'Cli.js'): | ||
$ node Cli.js ./asyncapi.yaml ./template -o ./output -p param1=value1 --debug --install --disable-hook hookType=hookName | ||
Before Migration (Using 'ag'): | ||
$ ag ./asyncapi.yaml ./template -o ./output -p param1=value1 --debug --install --disable-hook hookType=hookName | ||
After Migration (Using AsyncAPI CLI): | ||
$ asyncapi generate fromTemplate ./asyncapi.yaml ./template --output ./output --param param1=value1 --debug --install --disable-hook hookType=hookName | ||
For more details, please visit: [Migration Guide URL] | ||
For more details, please visit: ${migrationGuideUrl} | ||
Thank you for your understanding and cooperation. | ||
`); |