mirror of
https://github.com/sweetwisdom/everything-claude-code-zh.git
synced 2026-03-22 06:20:10 +00:00
24 lines
666 B
TypeScript
24 lines
666 B
TypeScript
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 });
|
|
}
|