@clerc/core 1.0.0-beta.23 → 1.0.0-beta.25

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +5 -12
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -68,8 +68,8 @@ interface BaseFlagOptions<T extends TypeValue = TypeValue> {
68
68
  * e.g., String, Number, [String], (val) => val.split(',')
69
69
  */
70
70
  type: T;
71
- /** Aliases for the flag. */
72
- alias?: MaybeArray<string>;
71
+ /** Short flag alias (single character). */
72
+ short?: string;
73
73
  /** The default value of the flag. */
74
74
  default?: unknown;
75
75
  /** Whether the flag is required. */
@@ -378,14 +378,7 @@ declare module "@clerc/core" {
378
378
  };
379
379
  }
380
380
  }
381
- interface CompletionsPluginOptions {
382
- /**
383
- * Whether to register the `completions install` and `completions uninstall` commands.
384
- * @default true
385
- */
386
- managementCommands?: boolean;
387
- }
388
- declare const completionsPlugin: (options?: CompletionsPluginOptions) => Plugin$1;
381
+ declare const completionsPlugin: () => Plugin$1;
389
382
  //#endregion
390
383
  //#region ../plugin-friendly-error/src/index.d.ts
391
384
  interface FriendlyErrorPluginOptions {
@@ -550,11 +543,11 @@ declare const versionPlugin: ({
550
543
  flag
551
544
  }?: VersionPluginOptions) => Plugin$1;
552
545
  declare namespace re_exports_d_exports {
553
- export { CommandHelpOptions, CompletionsPluginOptions, FriendlyErrorPluginOptions, GroupDefinition, GroupsOptions, HelpOptions, HelpPluginOptions, completionsPlugin, defaultFormatters, friendlyErrorPlugin, helpPlugin, notFoundPlugin, strictFlagsPlugin, versionPlugin };
546
+ export { CommandHelpOptions, FriendlyErrorPluginOptions, GroupDefinition, GroupsOptions, HelpOptions, HelpPluginOptions, completionsPlugin, defaultFormatters, friendlyErrorPlugin, helpPlugin, notFoundPlugin, strictFlagsPlugin, versionPlugin };
554
547
  }
555
548
  import * as import___clerc_core from "@clerc/core";
556
549
  declare namespace index_d_exports$1 {
557
- export { Cli, CommandHelpOptions, CompletionsPluginOptions, FriendlyErrorPluginOptions, GroupDefinition, GroupsOptions, HelpOptions, HelpPluginOptions, completionsPlugin, defaultFormatters, friendlyErrorPlugin, helpPlugin, notFoundPlugin, strictFlagsPlugin, versionPlugin };
550
+ export { Cli, CommandHelpOptions, FriendlyErrorPluginOptions, GroupDefinition, GroupsOptions, HelpOptions, HelpPluginOptions, completionsPlugin, defaultFormatters, friendlyErrorPlugin, helpPlugin, notFoundPlugin, strictFlagsPlugin, versionPlugin };
558
551
  }
559
552
  declare const Cli: (options?: CreateOptions$1) => Clerc$1;
560
553
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerc/core",
3
- "version": "1.0.0-beta.23",
3
+ "version": "1.0.0-beta.25",
4
4
  "author": "Ray <i@mk1.io> (https://github.com/so1ve)",
5
5
  "type": "module",
6
6
  "description": "Clerc core",
@@ -45,10 +45,10 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "lite-emit": "^4.0.0",
48
- "@clerc/parser": "^1.0.0-beta.23"
48
+ "@clerc/parser": "^1.0.0-beta.25"
49
49
  },
50
50
  "devDependencies": {
51
51
  "is-platform": "^1.0.0",
52
- "@clerc/utils": "1.0.0-beta.23"
52
+ "@clerc/utils": "1.0.0-beta.25"
53
53
  }
54
54
  }