Phantom.Prompt.Argument (phantom v0.1.0)

View Source

Summary

Types

json()

@type json() :: %{name: String.t(), description: String.t(), required: boolean()}

t()

@type t() :: %Phantom.Prompt.Argument{
  description: String.t(),
  name: String.t(),
  required: boolean()
}

Functions

build(attrs)

@spec build(map() | Keyword.t()) :: t()

to_json(argument)

@spec to_json(t()) :: json()