Skip to content

Commit 3e6d44d

Browse files
committed
Make example command runnable
1 parent 80eafb2 commit 3e6d44d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ open-rpc-generator generate -c open-rpc-generator-config.json
4141
### Generating an individual component
4242

4343
```shell
44-
$ open-rpc-generator-client generate
45-
-t client
46-
-l typescript
47-
-n petstoreClientTs
48-
-d https://raw.githubusercontent.com/open-rpc/examples/master/service-descriptions/petstore-openrpc.json
44+
open-rpc-generator generate \
45+
-t client \
46+
-l typescript \
47+
-n petstoreClientTs \
48+
-d https://raw.githubusercontent.com/open-rpc/examples/master/service-descriptions/petstore-openrpc.json \
4949
-o ./generated
5050
```
5151
### Custom Component Generation Configuration
52-
Here for customComponent we specify the module that exports as
52+
Here for customComponent we specify the module that exports as
5353
default the type IComponentModule see custom-test-component.js as an example. It is easy to also refer to an npm package as well as a plain js file. customType is can be anything , it is not restricted to client | server | doc naming.
5454
```
5555
{
@@ -62,7 +62,7 @@ default the type IComponentModule see custom-test-component.js as an example. It
6262
"language": "typescript",
6363
"customComponent": "./src/custom-test-component.js",
6464
"customType": "client"
65-
}
65+
}
6666
]
6767
}
6868
```

0 commit comments

Comments
 (0)