Skip to content

Commit aa14d32

Browse files
committed
feat: add template name
1 parent 242e03e commit aa14d32

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@ MQTT
3030

3131
## How to use the template
3232

33-
Install [AsyncAPI CLI](https://github.com/asyncapi/cli) and generate code:
33+
- Install [AsyncAPI CLI](https://github.com/asyncapi/cli)
34+
- Make sure you have Python 3
35+
36+
Generate code:
3437

3538
```bash
36-
asyncapi generate fromTemplate myAsyncapi.yml https://github.com/derberg/python-mqtt-client-template --output test/project --force-write --param server=dev
39+
asyncapi generate fromTemplate https://raw.githubusercontent.com/derberg/python-mqtt-client-template/main/test/fixtures/asyncapi.yml https://github.com/derberg/python-mqtt-client-template --output myclient --force-write --param server=dev
3740
```
3841

3942
You can also clone this template locally and run `npm test` to check it in action based on examples. Just remember to use some client to verify if tests are really sending messages to the broker:

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"name": "python-mqtt-client-template",
3+
"version": "0.0.1",
24
"generator": {
35
"apiVersion": "v1",
46
"generator": ">=1.10.0 <2.0.0",

0 commit comments

Comments
 (0)