Skip to content

Commit

Permalink
v0.11.4
Browse files Browse the repository at this point in the history
  • Loading branch information
TanklesXL committed Aug 6, 2023
1 parent 767705e commit 8457f10
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gleam 0.27.0
gleam 0.30.4
2 changes: 1 addition & 1 deletion gleam.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "glint"
version = "0.11.3"
version = "0.11.4"

# Fill out these fields if you intend to generate HTML documentation or publish
# your project to the Hex package manager.
Expand Down
18 changes: 9 additions & 9 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@

packages = [
{ name = "gleam_bitwise", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_bitwise", source = "hex", outer_checksum = "6064699EFBABB1CA392DCB193D0E8B402FB042B4B46857B01E6875E643B57F54" },
{ name = "gleam_community_ansi", version = "1.1.0", build_tools = ["gleam"], requirements = ["gleam_bitwise", "gleam_community_colour", "gleam_stdlib"], otp_app = "gleam_community_ansi", source = "hex", outer_checksum = "6E4E0CF2B207C1A7FCD3C21AA43514D67BC7004F21F82045CDCCE6C727A14862" },
{ name = "gleam_community_colour", version = "1.1.0", build_tools = ["gleam"], requirements = ["gleam_bitwise", "gleam_stdlib"], otp_app = "gleam_community_colour", source = "hex", outer_checksum = "D27CE357ECB343929A8CEC3FBA0B499943A47F0EE1F589EE16AFC2DC21C61E5B" },
{ name = "gleam_stdlib", version = "0.27.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "9DBDD21B48C654182CDD8AA15ACF85E8E74A0438583C68BD7EF08BE89F999C6F" },
{ name = "gleam_community_ansi", version = "1.1.0", build_tools = ["gleam"], requirements = ["gleam_community_colour", "gleam_bitwise", "gleam_stdlib"], otp_app = "gleam_community_ansi", source = "hex", outer_checksum = "6E4E0CF2B207C1A7FCD3C21AA43514D67BC7004F21F82045CDCCE6C727A14862" },
{ name = "gleam_community_colour", version = "1.1.0", build_tools = ["gleam"], requirements = ["gleam_stdlib", "gleam_bitwise"], otp_app = "gleam_community_colour", source = "hex", outer_checksum = "D27CE357ECB343929A8CEC3FBA0B499943A47F0EE1F589EE16AFC2DC21C61E5B" },
{ name = "gleam_stdlib", version = "0.30.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "03710B3DA047A3683117591707FCA19D32B980229DD8CE8B0603EB5B5144F6C3" },
{ name = "gleeunit", version = "0.10.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "ECEA2DE4BE6528D36AFE74F42A21CDF99966EC36D7F25DEB34D47DD0F7977BAF" },
{ name = "snag", version = "0.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "snag", source = "hex", outer_checksum = "35C63E478782C58236F1050297C2FDF9806A4DD55C6FAF0B6EC5E54BC119342D" },
{ name = "snag", version = "0.2.1", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "snag", source = "hex", outer_checksum = "8FD70D8FB3728E08AC425283BB509BB0F012BE1AE218424A597CDE001B0EE589" },
]

[requirements]
gleam_community_ansi = "~> 1.0"
gleam_community_colour = "~> 1.0"
gleam_stdlib = "~> 0.19"
gleeunit = "~> 0.5"
snag = "~> 0.2"
gleam_community_ansi = { version = "~> 1.0" }
gleam_community_colour = { version = "~> 1.0" }
gleam_stdlib = { version = "~> 0.19" }
gleeunit = { version = "~> 0.5" }
snag = { version = "~> 0.2" }
6 changes: 3 additions & 3 deletions src/glint/flag.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,12 @@ fn parse_list_flag(

// Error creation and manipulation functions
fn layer_invalid_flag(err: Snag, flag: String) -> Snag {
"invalid flag '" <> flag <> "'"
{ "invalid flag '" <> flag <> "'" }
|> snag.layer(err, _)
}

fn no_value_flag_err(flag_input: String) -> Snag {
"flag '" <> flag_input <> "' has no assigned value"
{ "flag '" <> flag_input <> "' has no assigned value" }
|> snag.new()
|> layer_invalid_flag(flag_input)
}
Expand All @@ -291,7 +291,7 @@ fn undefined_flag_err(key: String) -> Snag {
}

fn cannot_parse(flag key: String, with value: String, is kind: String) -> Snag {
"cannot parse flag '" <> key <> "' value '" <> value <> "' as " <> kind
{ "cannot parse flag '" <> key <> "' value '" <> value <> "' as " <> kind }
|> snag.new()
|> layer_invalid_flag(key)
}
Expand Down

0 comments on commit 8457f10

Please sign in to comment.