Gleam ATProto packages
30

Configure Feed

Select the types of activity you want to include in your feed.

stare: move temporary formatting file

Signed-off-by: Naomi Roberts <mia@naomieow.xyz>

Naomi Roberts (May 20, 2026, 8:19 PM +0100) d2e45727 fd3ecbe7

+8 -5
+8 -5
stare/src/stare.gleam
··· 430 430 431 431 pub fn format(code code: String) -> Result(String, Nil) { 432 432 use _ <- result.try( 433 - simplifile.create_directory_all("./build/tmp/") 433 + simplifile.create_directory_all("./build/stare_tmp/") 434 434 |> result.replace_error(Nil), 435 435 ) 436 436 use _ <- result.try( 437 - simplifile.write(to: "./build/tmp/format.gleam", contents: code) 437 + simplifile.write( 438 + to: "./build/stare_tmp/stare_module_formatted.gleam", 439 + contents: code, 440 + ) 438 441 |> result.replace_error(Nil), 439 442 ) 440 443 use _ <- result.try( 441 444 shellout.command( 442 445 run: "gleam", 443 - with: ["format", "./build/tmp/format.gleam"], 446 + with: ["format", "./build/stare_tmp/stare_module_formatted.gleam"], 444 447 in: ".", 445 448 opt: [], 446 449 ) 447 450 |> result.replace_error(Nil), 448 451 ) 449 452 use code <- result.try( 450 - simplifile.read(from: "./build/tmp/format.gleam") 453 + simplifile.read(from: "./build/stare_tmp/stare_module_formatted.gleam") 451 454 |> result.replace_error(Nil), 452 455 ) 453 456 use _ <- result.try( 454 - simplifile.delete("./build/tmp/format.gleam") 457 + simplifile.delete("./build/stare_tmp/stare_module_formatted.gleam") 455 458 |> result.replace_error(Nil), 456 459 ) 457 460 Ok(code)