Skip to content

Commit

Permalink
don't provide a name to glint
Browse files Browse the repository at this point in the history
  • Loading branch information
TanklesXL committed Nov 22, 2024
1 parent a0114c8 commit ecd6901
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/gladvent.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import gleam/string
import glint
import snag

pub fn main() {
run()
}

/// Add this function to your project's `main` function in order to run the gladvent CLI.
///
/// This function gets its input from the command line arguments by using the `argv` library.
Expand All @@ -16,9 +20,12 @@ pub fn run() {
glint.new()
|> glint.path_help(
[],
"gladvent is an advent of code runner and generator for gleam. Please use either the 'run' or 'new' commands.",
"gladvent is an advent of code runner and generator for gleam.
Please use either the 'run' or 'new' commands.
",
)
|> glint.with_name("gladvent")
|> glint.pretty_help(glint.default_pretty_help())
|> glint.group_flag(at: [], of: cmd.year_flag())
|> glint.add(at: ["new"], do: new.new_command())
Expand Down

0 comments on commit ecd6901

Please sign in to comment.