From 0fa46f475e2f14cd798973c2598472782f142514 Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Mon, 19 Feb 2024 22:29:41 +0000 Subject: :heavy_plus_sign: Upgrade glint to v0.16.0-rc1 --- src/lustre/cli/add.gleam | 2 +- src/lustre/cli/build.gleam | 4 ++-- src/lustre/cli/dev.gleam | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/lustre/cli/add.gleam b/src/lustre/cli/add.gleam index 5323e8d..5fc53da 100644 --- a/src/lustre/cli/add.gleam +++ b/src/lustre/cli/add.gleam @@ -25,7 +25,7 @@ to bundle applications and act as a development server. } }) |> glint.description(description) - |> glint.count_args(glint.EqArgs(0)) + |> glint.unnamed_args(glint.EqArgs(0)) |> glint.flag("os", { let description = "" let default = get_os() diff --git a/src/lustre/cli/build.gleam b/src/lustre/cli/build.gleam index 2b939f3..1314f9e 100644 --- a/src/lustre/cli/build.gleam +++ b/src/lustre/cli/build.gleam @@ -76,7 +76,7 @@ JavaScript module for you to host or distribute. } }) |> glint.description(description) - |> glint.count_args(glint.EqArgs(0)) + |> glint.unnamed_args(glint.EqArgs(0)) |> glint.flag("minify", { let description = "Minify the output" let default = False @@ -150,7 +150,7 @@ present. }) |> glint.description(description) |> glint.named_args(["module_path"]) - |> glint.count_args(glint.EqArgs(1)) + |> glint.unnamed_args(glint.EqArgs(1)) |> glint.flag("minify", { let description = "Minify the output" let default = False diff --git a/src/lustre/cli/dev.gleam b/src/lustre/cli/dev.gleam index 75711bc..f561b39 100644 --- a/src/lustre/cli/dev.gleam +++ b/src/lustre/cli/dev.gleam @@ -20,7 +20,6 @@ import simplifile pub fn run() -> Command(Nil) { let description = " - " glint.command(fn(input) { @@ -82,7 +81,7 @@ pub fn run() -> Command(Nil) { } }) |> glint.description(description) - |> glint.count_args(glint.EqArgs(0)) + |> glint.unnamed_args(glint.EqArgs(0)) |> glint.flag("host", { let description = "" let default = "0.0.0.0" -- cgit v1.2.3