@lkangd/cc-env 1.1.0 → 1.1.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.1 (2026-04-27)
4
+
5
+ ### Code Refactoring
6
+ * flatten preset subcommands to top-level CLI commands
7
+
3
8
  ## 1.1.0 (2026-04-27)
4
9
 
5
10
  ### Features
package/dist/cli.js CHANGED
@@ -183,8 +183,7 @@ program
183
183
  })({
184
184
  yes: options.yes
185
185
  }));
186
- const presetCommand = program.command('preset').description('Manage environment presets');
187
- presetCommand
186
+ program
188
187
  .command('show')
189
188
  .description('List and view all presets')
190
189
  .action(createShowPresetsCommand({
@@ -195,7 +194,7 @@ presetCommand
195
194
  await app.waitUntilExit();
196
195
  }
197
196
  }));
198
- presetCommand
197
+ program
199
198
  .command('delete')
200
199
  .description('Delete a saved preset')
201
200
  .action(createDeletePresetCommand({
@@ -213,7 +212,7 @@ presetCommand
213
212
  return result;
214
213
  }
215
214
  }));
216
- presetCommand
215
+ program
217
216
  .command('create')
218
217
  .description('Create a new environment preset')
219
218
  .action(() => createPresetCreateCommand({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lkangd/cc-env",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "",
5
5
  "homepage": "https://github.com/lkangd/cc-env#readme",
6
6
  "bugs": {
package/src/cli.ts CHANGED
@@ -235,8 +235,7 @@ program
235
235
  })
236
236
  )
237
237
 
238
- const presetCommand = program.command('preset').description('Manage environment presets')
239
- presetCommand
238
+ program
240
239
  .command('show')
241
240
  .description('List and view all presets')
242
241
  .action(
@@ -249,7 +248,8 @@ presetCommand
249
248
  }
250
249
  })
251
250
  )
252
- presetCommand
251
+
252
+ program
253
253
  .command('delete')
254
254
  .description('Delete a saved preset')
255
255
  .action(
@@ -271,7 +271,8 @@ presetCommand
271
271
  }
272
272
  })
273
273
  )
274
- presetCommand
274
+
275
+ program
275
276
  .command('create')
276
277
  .description('Create a new environment preset')
277
278
  .action(() =>