import { exec } from '../../../../code/tool/node/process.js';
import { buildCommandToFormatRust } from './command.js';
import { formatCodeWithPrettierPlugin, } from './shared.js';
// https://github.com/realm/SwiftLint
// https://github.com/realm/SwiftLint/blob/main/Dockerfile
export async function format(source) {
    return await formatCodeWithPrettierPlugin(source);
}
// https://github.com/jgm/pandoc/tree/main/test
// https://github.com/SheetJS/test_files
export async function formatKotlin(input) {
    // return await runFormatKotlinCommand(cmd)
}
export async function formatSwift(input) {
    // return await runFormatSwiftCommand(cmd)
}
export async function formatRust(input) {
    const [cmd] = buildCommandToFormatRust(input);
    return await exec(cmd.link);
}
export async function formatPython(input) {
    // return await runFormatPythonCommand(cmd)
}
export async function formatRuby(input) {
    // return await runFormatRubyCommand(cmd)
}
export async function formatAssembly(input) {
    // return await runFormatAssemblyCommand(cmd)
}
export async function formatC(input) {
    // return await runFormatCCommand(cmd)
}
//# sourceMappingURL=node.js.map