-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7670fae
commit 08e4e4e
Showing
7 changed files
with
230 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { | ||
FormatRust, | ||
FormatKotlin, | ||
FormatSwift, | ||
buildCommandToFormatRust, | ||
FormatPython, | ||
FormatRuby, | ||
FormatAssembly, | ||
FormatC, | ||
} from '../../../shared/index.js' | ||
import { handleCommand } from '../../command.js' | ||
// https://github.com/jgm/pandoc/tree/main/test | ||
// https://github.com/SheetJS/test_files | ||
|
||
export async function formatKotlin(input: FormatKotlin) { | ||
// return await runFormatKotlinCommand(cmd) | ||
} | ||
|
||
export async function formatSwift(input: FormatSwift) { | ||
// return await runFormatSwiftCommand(cmd) | ||
} | ||
|
||
export async function formatRust(input: FormatRust) { | ||
const [cmd] = buildCommandToFormatRust(input) | ||
return await handleCommand(cmd!) | ||
} | ||
|
||
export async function formatPython(input: FormatPython) { | ||
// return await runFormatPythonCommand(cmd) | ||
} | ||
|
||
export async function formatRuby(input: FormatRuby) { | ||
// return await runFormatRubyCommand(cmd) | ||
} | ||
|
||
export async function formatAssembly(input: FormatAssembly) { | ||
// return await runFormatAssemblyCommand(cmd) | ||
} | ||
|
||
export async function formatC(input: FormatC) { | ||
// return await runFormatCCommand(cmd) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.