Skip to content

Commit

Permalink
use new glint rc
Browse files Browse the repository at this point in the history
  • Loading branch information
TanklesXL committed Feb 19, 2024
1 parent 548b965 commit 6ded0f2
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/actions/test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ inputs:
gleam-version:
description: gleam version
required: false
default: 1.0.0-rc1
default: 1.0.0-rc2
erlang-version:
description: erlang-otp version
required: false
Expand Down
2 changes: 1 addition & 1 deletion gleam.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ gleam_stdlib = "~> 0.34 or ~> 1.0"
gleam_otp = "~> 0.4"
gleam_erlang = "~> 0.7"
snag = "~> 0.2"
glint = " ~> 0.15"
glint = " ~> 0.16.0-rc1"
simplifile = "~> 0.3"
argv = "~> 1.0"

Expand Down
6 changes: 3 additions & 3 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ packages = [
{ name = "gleam_community_colour", version = "1.3.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_community_colour", source = "hex", outer_checksum = "A49A5E3AE8B637A5ACBA80ECB9B1AFE89FD3D5351FF6410A42B84F666D40D7D5" },
{ name = "gleam_erlang", version = "0.24.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_erlang", source = "hex", outer_checksum = "26BDB52E61889F56A291CB34167315780EE4AA20961917314446542C90D1C1A0" },
{ name = "gleam_otp", version = "0.9.0", build_tools = ["gleam"], requirements = ["gleam_erlang", "gleam_stdlib"], otp_app = "gleam_otp", source = "hex", outer_checksum = "5FADBBEC5ECF3F8B6BE91101D432758503192AE2ADBAD5602158977341489F71" },
{ name = "gleam_stdlib", version = "0.34.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "1FB8454D2991E9B4C0C804544D8A9AD0F6184725E20D63C3155F0AEB4230B016" },
{ name = "gleam_stdlib", version = "0.35.1", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "5443EEB74708454B65650FEBBB1EF5175057D1DEC62AEA9D7C6D96F41DA79152" },
{ name = "gleeunit", version = "1.0.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "D364C87AFEB26BDB4FB8A5ABDE67D635DC9FA52D6AB68416044C35B096C6882D" },
{ name = "glint", version = "0.15.0", build_tools = ["gleam"], requirements = ["gleam_community_ansi", "gleam_community_colour", "gleam_stdlib", "snag"], otp_app = "glint", source = "hex", outer_checksum = "D5324DBE11F57BF0B303D99EA086D66B8DC319EE59C1355C76EBB1544187C237" },
{ name = "glint", version = "0.16.0-rc1", build_tools = ["gleam"], requirements = ["gleam_community_ansi", "gleam_community_colour", "gleam_stdlib", "snag"], otp_app = "glint", source = "hex", outer_checksum = "AF9A7CCAD9FC8CDFF2606F97BC52C2D98559F27EB28CD3B8A11A35641740AE2F" },
{ name = "simplifile", version = "0.4.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "simplifile", source = "hex", outer_checksum = "8F3C94B83F691CCFACD784A4D7C1F7E5A0437D93341549B908EE3B32E3477447" },
{ name = "snag", version = "0.3.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "snag", source = "hex", outer_checksum = "54D32E16E33655346AA3E66CBA7E191DE0A8793D2C05284E3EFB90AD2CE92BCC" },
]
Expand All @@ -20,6 +20,6 @@ gleam_erlang = { version = "~> 0.7" }
gleam_otp = { version = "~> 0.4" }
gleam_stdlib = { version = "~> 0.34 or ~> 1.0" }
gleeunit = { version = "~> 1.0" }
glint = { version = " ~> 0.15" }
glint = { version = " ~> 0.16.0-rc1" }
simplifile = { version = "~> 0.3" }
snag = { version = "~> 0.2" }
2 changes: 2 additions & 0 deletions src/gladvent.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import argv
pub fn main() {
let commands =
glint.new()
|> glint.with_name("gladvent")
|> glint.as_gleam_module
|> glint.global_flag(cmd.year, cmd.year_flag())
|> glint.with_pretty_help(glint.default_pretty_help())
|> glint.add(["new"], new.new_command())
Expand Down
2 changes: 1 addition & 1 deletion src/gladvent/internal/cmd/new.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -179,5 +179,5 @@ pub fn new_command() {
)
}
|> glint.description("Create .gleam and input files")
|> glint.count_args(glint.MinArgs(1))
|> glint.unnamed_args(glint.MinArgs(1))
}
6 changes: 3 additions & 3 deletions src/gladvent/internal/cmd/run.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ fn gleam_err_to_string(g: GleamErr) -> String {
"at line",
int.to_string(g.line),
g.value
|> option.map(fn(val) { "with value " <> string.inspect(val) })
|> option.unwrap(""),
|> option.map(fn(val) { "with value " <> string.inspect(val) })
|> option.unwrap(""),
],
" ",
)
Expand Down Expand Up @@ -266,7 +266,7 @@ pub fn run_command() -> glint.Command(Result(List(String))) {
|> glint.flag(timeout, timeout_flag())
|> glint.flag(allow_crash, allow_crash_flag())
|> glint.description("Run the specified days")
|> glint.count_args(glint.MinArgs(1))
|> glint.unnamed_args(glint.MinArgs(1))
}

pub fn run_all_command() -> glint.Command(Result(List(String))) {
Expand Down

0 comments on commit 6ded0f2

Please sign in to comment.