hudada-cli
Version:
专为程序员准备的本地文档搜索,快捷开发工具
21 lines (20 loc) • 949 B
TypeScript
import type { optionsType } from './type';
export declare const configDir: string;
export declare const mydirFile: string;
export declare const SUPPORTED_EXTENSIONS: {
text: string[];
image: string[];
};
export declare const getOpenCommand: () => "open" | "start" | "xdg-open";
export declare const dataPath: string;
export declare const availableFiles: string[];
export declare function searchInDirectory(dirPath: string, keyword: string): Array<{
file: string;
matches: string[];
}>;
export declare const getDirectoryContent: (dirPath: string) => string[];
export declare function getExistingPaths(filePath: string): string[];
export declare function getAllSearchPaths(): string[];
export declare function getAllAvailableFiles(): string[];
export declare function findFileInPaths(fileName: string): string | null;
export declare function getFileContent(options: optionsType, commandObj: any, isSub: boolean, args: string[]): void;