docvars 0.3.1 → 0.3.2

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
@@ -31,16 +31,16 @@ docvars <input> <output> [options]
31
31
 
32
32
  ### Options
33
33
 
34
- | Option | Default | Description |
35
- | --------------- | ---------------- | --------------------------------------------------- |
36
- | `--vars` | `variables.yaml` | Path to the variables YAML file |
37
- | `--only` | `**/*` | Glob pattern to filter files (e.g. **/*.md) |
38
- | `--exclude` | - | Glob pattern to exclude specific files |
39
- | `--watch` | `false` | Watch for file changes and rebuild automatically |
40
- | `--rename-from` | - | Variable name to rename from (use with --rename-to) |
41
- | `--rename-to` | - | Variable name to rename to (use with --rename-from) |
42
- | `--list-vars` | `false` | List all variables used in templates |
43
- | `--dry-run` | `false` | Preview changes without writing files |
34
+ | Option | Alias | Default | Description |
35
+ | --------------- | ----- | ---------------- | --------------------------------------------------- |
36
+ | `--vars` | `-v` | `variables.yaml` | Path to the variables YAML file |
37
+ | `--only` | `-o` | `**/*` | Glob pattern to filter files (e.g. **/*.md) |
38
+ | `--exclude` | `-e` | - | Glob pattern to exclude specific files |
39
+ | `--watch` | `-w` | `false` | Watch for file changes and rebuild automatically |
40
+ | `--rename-from` | `-r` | - | Variable name to rename from (use with --rename-to) |
41
+ | `--rename-to` | `-t` | - | Variable name to rename to (use with --rename-from) |
42
+ | `--list-vars` | `-l` | `false` | List all variables used in templates |
43
+ | `--dry-run` | `-d` | `false` | Preview changes without writing files |
44
44
 
45
45
  ## Examples
46
46
 
@@ -11,37 +11,45 @@ export declare const mainCommand: import("citty").CommandDef<{
11
11
  };
12
12
  vars: {
13
13
  type: "string";
14
+ alias: string;
14
15
  description: string;
15
16
  default: string;
16
17
  };
17
18
  only: {
18
19
  type: "string";
20
+ alias: string;
19
21
  description: string;
20
22
  };
21
23
  exclude: {
22
24
  type: "string";
25
+ alias: string;
23
26
  description: string;
24
27
  };
25
28
  watch: {
26
29
  type: "boolean";
30
+ alias: string;
27
31
  description: string;
28
32
  default: false;
29
33
  };
30
34
  "rename-from": {
31
35
  type: "string";
36
+ alias: string;
32
37
  description: string;
33
38
  };
34
39
  "rename-to": {
35
40
  type: "string";
41
+ alias: string;
36
42
  description: string;
37
43
  };
38
44
  "list-vars": {
39
45
  type: "boolean";
46
+ alias: string;
40
47
  description: string;
41
48
  default: false;
42
49
  };
43
50
  "dry-run": {
44
51
  type: "boolean";
52
+ alias: string;
45
53
  description: string;
46
54
  default: false;
47
55
  };
@@ -89,37 +89,45 @@ export const mainCommand = defineCommand({
89
89
  },
90
90
  vars: {
91
91
  type: "string",
92
+ alias: "v",
92
93
  description: "Path to variables YAML file",
93
94
  default: "variables.yaml",
94
95
  },
95
96
  only: {
96
97
  type: "string",
98
+ alias: "o",
97
99
  description: "Glob pattern to filter files (e.g. **/*.md)",
98
100
  },
99
101
  exclude: {
100
102
  type: "string",
103
+ alias: "e",
101
104
  description: "Glob pattern to exclude files",
102
105
  },
103
106
  watch: {
104
107
  type: "boolean",
108
+ alias: "w",
105
109
  description: "Watch for file changes and rebuild automatically",
106
110
  default: false,
107
111
  },
108
112
  "rename-from": {
109
113
  type: "string",
114
+ alias: "r",
110
115
  description: "Variable name to rename from (use with --rename-to)",
111
116
  },
112
117
  "rename-to": {
113
118
  type: "string",
119
+ alias: "t",
114
120
  description: "Variable name to rename to (use with --rename-from)",
115
121
  },
116
122
  "list-vars": {
117
123
  type: "boolean",
124
+ alias: "l",
118
125
  description: "List all variables used in templates",
119
126
  default: false,
120
127
  },
121
128
  "dry-run": {
122
129
  type: "boolean",
130
+ alias: "d",
123
131
  description: "Preview changes without writing files",
124
132
  default: false,
125
133
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docvars",
3
3
  "author": "Shunta Toda",
4
- "version": "0.3.1",
4
+ "version": "0.3.2",
5
5
  "description": "Replace {{variables}} in document templates with YAML values",
6
6
  "type": "module",
7
7
  "main": "./dist/application/use-cases/process-templates.js",