@clerc/plugin-completions
Advanced tools
Comparing version 0.17.3 to 0.18.0
import { definePlugin } from '@clerc/core'; | ||
import { gracefulFlagName, mustArray } from '@clerc/utils'; | ||
import { gracefulFlagName } from '@clerc/utils'; | ||
@@ -42,5 +42,4 @@ const generateCommandCompletion = (name) => ` | ||
if (flag == null ? void 0 : flag.alias) { | ||
const arrayAlias = mustArray(flag.alias); | ||
gen.push( | ||
...arrayAlias.map((n) => `[CompletionResult]::new('${gracefulFlagName(n)}', '${n}', [CompletionResultType]::ParameterName, '${command.flags[flagName].description || NO_DESCRIPTION}')`) | ||
`[CompletionResult]::new('${gracefulFlagName(flag.alias)}', '${flag.alias}', [CompletionResultType]::ParameterName, '${command.flags[flagName].description || NO_DESCRIPTION}')` | ||
); | ||
@@ -47,0 +46,0 @@ } |
{ | ||
"name": "@clerc/plugin-completions", | ||
"version": "0.17.3", | ||
"version": "0.18.0", | ||
"author": "Ray <nn_201312@163.com> (https://github.com/so1ve)", | ||
@@ -54,6 +54,6 @@ "description": "Clerc plugin completions", | ||
"dependencies": { | ||
"@clerc/utils": "0.17.3" | ||
"@clerc/utils": "0.18.0" | ||
}, | ||
"devDependencies": { | ||
"@clerc/core": "0.17.3" | ||
"@clerc/core": "0.18.0" | ||
}, | ||
@@ -60,0 +60,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
10879
238
+ Added@clerc/utils@0.18.0(transitive)
- Removed@clerc/utils@0.17.3(transitive)
Updated@clerc/utils@0.18.0