@reliverse/rempts 1.7.39 → 1.7.40

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 CHANGED
@@ -1,9 +1,9 @@
1
1
  # 📃 rempts • powerful js/ts cli builder
2
2
 
3
- > @reliverse/rempts is a modern, type-safe toolkit for building delightful cli experiences. it's fast, flexible, and made for developer happiness. file-based commands keep things simple—no clutter, just clean and easy workflows. this is how cli should feel.
4
-
5
3
  [sponsor](https://github.com/sponsors/blefnk) — [discord](https://discord.gg/Pb8uKbwpsJ) — [repo](https://github.com/reliverse/rempts) — [npm](https://npmjs.com/@reliverse/rempts)
6
4
 
5
+ > @reliverse/rempts is a modern, type-safe toolkit for building delightful cli experiences. it's fast, flexible, and made for developer happiness. file-based commands keep things simple—no clutter, just clean and easy workflows. this is how cli should feel.
6
+
7
7
  ## Features
8
8
 
9
9
  - 😘 drop-in to libraries like `unjs/citty` and `@clack/prompts`
@@ -36,14 +36,6 @@
36
36
  bun add @reliverse/rempts
37
37
  ```
38
38
 
39
- **Coming soon**:
40
-
41
- ```bash
42
- bun add -D @reliverse/dler
43
- bun dler rempts --init cmd1 cmd2 # creates `src/app/cmd1/cmd.ts` and `src/app/cmd2/cmd.ts` files
44
- bun dler rempts # creates `src/app/cmds.ts` file
45
- ```
46
-
47
39
  ## Usage Examples
48
40
 
49
41
  - [Prompts](#prompts)
@@ -222,6 +214,14 @@ await main();
222
214
 
223
215
  > **Note**: `runMain` is now an alias for `createCli` and is still supported for backward compatibility. The new `createCli` API provides a more intuitive object-based configuration format.
224
216
 
217
+ ### Automatic command creation
218
+
219
+ ```bash
220
+ bun add -D @reliverse/dler
221
+ bun dler rempts --init cmd1 cmd2 # creates `src/app/cmd1/cmd.ts` and `src/app/cmd2/cmd.ts` files
222
+ bun dler rempts # creates `src/app/cmds.ts` file
223
+ ```
224
+
225
225
  ### Terminology
226
226
 
227
227
  - **Launcher/Router**: The main entry point for your CLI. Visit [CLI Launcher (Router)](#cli-launcher-router) section to learn more.
@@ -23,9 +23,7 @@ const getCallerDirectory = () => {
23
23
  const tryLoadCommand = async (path) => {
24
24
  if (!await fs.pathExists(path)) return null;
25
25
  try {
26
- relinka("verbose", `Attempting to load command from: ${path}`);
27
26
  const cmd = await jiti.import(path, { default: true });
28
- relinka("verbose", `Successfully loaded command from: ${path}`);
29
27
  return cmd;
30
28
  } catch {
31
29
  relinka("verbose", `Failed to load ${path} as a command file`);
package/package.json CHANGED
@@ -44,7 +44,7 @@
44
44
  "license": "MIT",
45
45
  "name": "@reliverse/rempts",
46
46
  "type": "module",
47
- "version": "1.7.39",
47
+ "version": "1.7.40",
48
48
  "author": "reliverse",
49
49
  "bugs": {
50
50
  "email": "blefnk@gmail.com",