@reliverse/rempts 1.7.16 โ 1.7.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
- ๐ช minimal API surface, maximum expressiveness
|
|
26
26
|
- ๐งช scriptable for testing, stable for production
|
|
27
27
|
- ๐๏ธ no more hacking together `inquirer`/`citty`/`commander`/`chalk`
|
|
28
|
-
- ๐ automatic command creation (`bun dler rempts init
|
|
28
|
+
- ๐ automatic command creation (`bun dler rempts --init cmd1 cmd2`)
|
|
29
|
+
- ๐ฆโ๐ฅ automatic creation of `src/app/cmds.ts` file (`bun dler rempts`)
|
|
29
30
|
|
|
30
31
|
## Installation
|
|
31
32
|
|
|
@@ -37,8 +38,8 @@ bun add @reliverse/rempts
|
|
|
37
38
|
|
|
38
39
|
```bash
|
|
39
40
|
bun add -D @reliverse/dler
|
|
40
|
-
bun dler rempts init
|
|
41
|
-
bun dler rempts
|
|
41
|
+
bun dler rempts --init cmd1 cmd2 # creates `src/app/cmd1/cmd.ts` and `src/app/cmd2/cmd.ts` files
|
|
42
|
+
bun dler rempts # creates `src/app/cmds.ts` file
|
|
42
43
|
```
|
|
43
44
|
|
|
44
45
|
## Usage Examples
|
|
@@ -229,7 +230,7 @@ export default defineCommand({
|
|
|
229
230
|
**Hint**:
|
|
230
231
|
|
|
231
232
|
- Install `bun add -D @reliverse/dler`
|
|
232
|
-
- Use `bun dler rempts init
|
|
233
|
+
- Use `bun dler rempts --init cmd1 cmd2` to init commands for rempts launcher's automatically
|
|
233
234
|
|
|
234
235
|
### Advanced Launcher Usage
|
|
235
236
|
|
|
@@ -307,7 +308,7 @@ await runMain(defineCommand({}));
|
|
|
307
308
|
|
|
308
309
|
```bash
|
|
309
310
|
bun add -D @reliverse/dler
|
|
310
|
-
bun dler rempts init
|
|
311
|
+
bun dler rempts --init my-cmd-1 # or: dler rempts --init my-cmd-1 my-cmd-2 --main src/mod.ts
|
|
311
312
|
# * `--main` is optional, default is `./src/mod.ts`
|
|
312
313
|
# * you can specify multiple commands at once
|
|
313
314
|
```
|