import kink from './kink.js';
export const COMMAND_NAME = [
    'ffmpeg',
    'black',
    'asmfmt',
    'ktfmt',
    'convert',
    'pandoc',
    'java',
    'clang++',
    'clang',
    'llc',
    'clang-format',
    'swift-format',
    'swiftc',
    'fontforge',
    'mogrify',
    '7z',
    'inkscape',
    'unar',
    'rar',
    'pdflatex',
    'objdump',
    'rustc',
    'rustfmt',
    'rubocop',
    'shfmt',
    'zip',
    'tar',
    'exiftool',
    'ebook-convert',
    'soffice',
    'jupyter',
    'docx2pdf',
    'unoconv',
];
export const COMMAND = {
    ffmpeg: ['ffmpeg'],
    black: ['black'],
    asmfmt: ['asmfmt'],
    ktfmt: ['ktfmt'], // kotlin format
    convert: ['convert'],
    pandoc: ['pandoc'],
    java: ['java'],
    'clang++': ['clang++'],
    clang: ['clang'],
    llc: ['lcc'],
    'clang-format': ['clang-format'],
    'swift-format': ['swift-format'],
    swiftc: ['swiftc'],
    fontforge: ['fontforge'],
    mogrify: ['mogrify'],
    '7z': ['7z'],
    inkscape: ['inkscape'],
    unar: ['unar'],
    rar: ['rar'],
    pdflatex: ['pdflatex'],
    objdump: ['objdump'],
    rustc: ['rustc'],
    rustfmt: ['rustfmt'],
    rubocop: ['rubocop'],
    shfmt: ['shfmt'],
    zip: ['zip'],
    tar: ['tar'],
    exiftool: ['exiftool'],
    'ebook-convert': ['ebook-convert'],
    soffice: ['soffice'],
    jupyter: ['jupyter'],
    docx2pdf: process.platform.match(/win32|darwin/)
        ? ['docx2pdf']
        : undefined,
    unoconv: ['unoconv'],
};
export function getCommand(name) {
    const cmd = COMMAND[name];
    if (!cmd) {
        throw kink('command_missing', { name });
    }
    return { name: name, list: [...cmd] };
}
export function setCommand(name, bond) {
    COMMAND[name] = bond;
}
//# sourceMappingURL=command.js.map