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:
parent
424e300ab5
commit
391e33c537
7 changed files with 177 additions and 94 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue