sheen/named

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 long(builder: Builder(a), long: String) -> Builder(a)
pub fn new(name: String) -> Builder(String)
pub fn optional(
  builder: Builder(a),
) -> fn(
  fn(fn(fn(Option(a)) -> Decoder(b)) -> Decoder(b)) ->
    fn(sheen/command.Builder(Nil)) ->
      Result(sheen/command.Builder(b), String),
) ->
  fn(sheen/command.Builder(Nil)) ->
    Result(sheen/command.Builder(b), String)
pub fn repeated(
  builder: Builder(a),
) -> fn(
  fn(fn(fn(List(a)) -> Decoder(b)) -> Decoder(b)) ->
    fn(sheen/command.Builder(Nil)) ->
      Result(sheen/command.Builder(b), String),
) ->
  fn(sheen/command.Builder(Nil)) ->
    Result(sheen/command.Builder(b), String)
pub fn required(
  builder: Builder(a),
) -> fn(
  fn(fn(fn(a) -> Decoder(b)) -> Decoder(b)) ->
    fn(sheen/command.Builder(Nil)) ->
      Result(sheen/command.Builder(b), String),
) ->
  fn(sheen/command.Builder(Nil)) ->
    Result(sheen/command.Builder(b), String)
pub fn short(builder: Builder(a), short: String) -> Builder(a)
Search Document