Skip to content

Commit

Permalink
remove glint.group_flag_tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
TanklesXL committed Mar 19, 2024
1 parent 3239638 commit 9bec357
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/glint.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -321,19 +321,6 @@ pub fn group_flag(
)
}

/// Add a flag for a group of commands.
/// The provided flags will be available to all commands at or beyond the provided path
///
/// This is a convenience function and calls `glint.group_flag` under the hood.
///
pub fn group_flag_tuple(
in glint: Glint(a),
at path: List(String),
of flag: #(String, flag.Builder(_)),
) -> Glint(a) {
group_flag(in: glint, at: path, for: flag.0, of: flag.1)
}

/// add a group flag to a command node
/// descend recursively down the command tree to find the node that the flag should be inserted at
///
Expand Down

0 comments on commit 9bec357

Please sign in to comment.