Skip to content

Commit

Permalink
Remove deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed May 17, 2024
1 parent 08939b2 commit c5b276b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions gleam.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ sqlight = "~> 0.5"
nakai = "~> 0.4"
wisp = "~> 0.4"
simplifile = "~> 1.5"
argv = ">= 1.0.2 and < 2.0.0"

[dev-dependencies]
gleeunit = "~> 1.0"
2 changes: 2 additions & 0 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# You typically do not need to edit this file

packages = [
{ name = "argv", version = "1.0.2", build_tools = ["gleam"], requirements = [], otp_app = "argv", source = "hex", outer_checksum = "BA1FF0929525DEBA1CE67256E5ADF77A7CDDFE729E3E3F57A5BDCAA031DED09D" },
{ name = "bbmustache", version = "1.12.2", build_tools = ["rebar3"], requirements = [], otp_app = "bbmustache", source = "hex", outer_checksum = "688B33A4D5CC2D51F575ADF0B3683FC40A38314A2F150906EDCFC77F5B577B3B" },
{ name = "birl", version = "1.6.1", build_tools = ["gleam"], requirements = ["gleam_stdlib", "ranger"], otp_app = "birl", source = "hex", outer_checksum = "976CFF85D34D50F7775896615A71745FBE0C325E50399787088F941B539A0497" },
{ name = "certifi", version = "2.12.0", build_tools = ["rebar3"], requirements = [], otp_app = "certifi", source = "hex", outer_checksum = "EE68D85DF22E554040CDB4BE100F33873AC6051387BAF6A8F6CE82272340FF1C" },
Expand Down Expand Up @@ -39,6 +40,7 @@ packages = [
]

[requirements]
argv = { version = ">= 1.0.2 and < 2.0.0"}
gleam_bbmustache = { version = "~> 2.0" }
gleam_crypto = { version = "~> 1.0" }
gleam_erlang = { version = "~> 0.9" }
Expand Down
3 changes: 2 additions & 1 deletion src/puck.gleam
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import argv
import gleam/erlang
import gleam/erlang/process
import gleam/int
Expand Down Expand Up @@ -27,7 +28,7 @@ const usage = "USAGE:
pub fn main() {
let config = config.load_from_env_or_crash()

case erlang.start_arguments() {
case argv.load().arguments {
["server"] -> server(config)
["login-url", user_id] -> login_url(user_id, config)
["email", subject, body, addresses] ->
Expand Down

0 comments on commit c5b276b

Please sign in to comment.