/** * link your code to system commands */ export default class Linker { private currentOs; private startCommand; private fileMode; constructor(startCommand?: string); /** * * @param binPath * @param libPath * @param command it could be checkstyle or checkstyle@v0.0.5 * @param name always checkstyle, use command when it does not exist */ register(binPath: string, libPath: string, command: string, name?: string): void; /** * 注册自定义指定 * @param binPath * @param libPath * @param command it could be checkstyle or checkstyle@v0.0.5 * @param name always checkstyle, use command when it does not exist */ registerCustom(binPath: string, libPath: string, commands: string[], name: string): void; remove(binPath: string, libPath: string, name: string): void; private removeOnWin32; private removeOnUnixLike; private linkToWin32; private linkCustomeToWin32; private linkToUnixLike; private linkCustomeToUnixLike; private writeExecFile; private shellTemplate; private customeShellTemplate; private cmdTemplate; private customeCmdTemplate; private shellFile; private cmdFile; private enableDir; }