mirror of
https://github.com/sweetwisdom/everything-claude-code-zh.git
synced 2026-03-22 06:20:10 +00:00
chore: sync with upstream e7cb442 + update zh translations
This commit is contained in:
23
.claude/skills/oneskill/src/commands/map.ts
Normal file
23
.claude/skills/oneskill/src/commands/map.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import type { TargetEnvironment } from '../core/types.js';
|
||||
import { mapInstalledSkills } from '../core/map.js';
|
||||
import { printJson } from '../utils/json.js';
|
||||
|
||||
export interface MapCommandOptions {
|
||||
target?: TargetEnvironment;
|
||||
global?: boolean;
|
||||
universal?: boolean;
|
||||
forceMap?: boolean;
|
||||
}
|
||||
|
||||
export async function runMap(options: MapCommandOptions): Promise<void> {
|
||||
if (!options.target) {
|
||||
throw new Error('map requires --target gemini');
|
||||
}
|
||||
const result = mapInstalledSkills({
|
||||
target: options.target,
|
||||
global: options.global,
|
||||
universal: options.universal,
|
||||
forceMap: options.forceMap,
|
||||
});
|
||||
printJson({ schemaVersion: '1', ...result });
|
||||
}
|
||||
Reference in New Issue
Block a user