1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-30 12:07:46 +00:00

feat: exit codes as public api

This commit is contained in:
Kevin Amado 2022-02-25 15:38:56 -05:00
parent 424e300ab5
commit 391e33c537
7 changed files with 177 additions and 94 deletions

View file

@ -12,5 +12,5 @@ pub fn main() -> Result<(), JsValue> {
#[wasm_bindgen]
pub fn format(before: String, path: String) -> String {
alejandra_engine::format::string_or_passthrough(path, before)
alejandra_engine::format::in_memory(path, before).1
}