sheen/arg

Types

pub opaque type Builder(a)

Functions

pub fn display(
  builder: Builder(a),
  display: String,
) -> Builder(a)
pub fn enum(
  builder: Builder(String),
  values: List(#(String, a)),
) -> Builder(a)
pub fn help(builder: Builder(a), help: String) -> Builder(a)
pub fn integer(builder: Builder(String)) -> Builder(Int)
pub fn new() -> Builder(String)
pub fn optional(
  builder: Builder(a),
) -> fn(
  fn(fn(fn(Option(a)) -> Decoder(b)) -> Decoder(b)) ->
    fn(sheen/internal/command_builder.Builder(Nil)) ->
      Result(sheen/internal/command_builder.Builder(b), String),
) ->
  fn(sheen/internal/command_builder.Builder(Nil)) ->
    Result(sheen/internal/command_builder.Builder(b), String)
pub fn repeated(
  builder: Builder(a),
) -> fn(
  fn(fn(fn(List(a)) -> Decoder(b)) -> Decoder(b)) ->
    fn(sheen/internal/command_builder.Builder(Nil)) ->
      Result(sheen/internal/command_builder.Builder(b), String),
) ->
  fn(sheen/internal/command_builder.Builder(Nil)) ->
    Result(sheen/internal/command_builder.Builder(b), String)
pub fn required(
  builder: Builder(a),
) -> fn(
  fn(fn(fn(a) -> Decoder(b)) -> Decoder(b)) ->
    fn(sheen/internal/command_builder.Builder(Nil)) ->
      Result(sheen/internal/command_builder.Builder(b), String),
) ->
  fn(sheen/internal/command_builder.Builder(Nil)) ->
    Result(sheen/internal/command_builder.Builder(b), String)
Search Document