outil/arg

Functions

pub fn bool(
  cmd: Command,
  name: String,
  continue: fn(
    fn(Command, fn(Bool) -> Result(a, CommandReturn(b))) ->
      Result(a, CommandReturn(b)),
    Command,
  ) -> c,
) -> c

Add a positional bool argument to the command before continuing.

pub fn float(
  cmd: Command,
  name: String,
  continue: fn(
    fn(Command, fn(Float) -> Result(a, CommandReturn(b))) ->
      Result(a, CommandReturn(b)),
    Command,
  ) -> c,
) -> c

Add a positional float argument to the command before continuing.

pub fn int(
  cmd: Command,
  name: String,
  continue: fn(
    fn(Command, fn(Int) -> Result(a, CommandReturn(b))) ->
      Result(a, CommandReturn(b)),
    Command,
  ) -> c,
) -> c

Add a positional int argument to the command before continuing.

pub fn string(
  cmd: Command,
  name: String,
  continue: fn(
    fn(Command, fn(String) -> Result(a, CommandReturn(b))) ->
      Result(a, CommandReturn(b)),
    Command,
  ) -> c,
) -> c

Add a positional string argument to the command before continuing.

Search Document