Tungsten v0.1.0 Tungsten.Codegen.Command View Source

Codegen for Command

Link to this section Summary

Functions

Returns true if any of the parameters of the given command is required

Link to this section Types

Link to this type

t() View Source
t() :: %Tungsten.Codegen.Command{
  async?: boolean(),
  deprecated?: boolean(),
  description: String.t() | nil,
  domain: Tungsten.Codegen.Domain.t(),
  experimental?: boolean(),
  name: String.t(),
  parameters: [Tungsten.Codegen.Property.t(), ...] | nil,
  redirect: String.t(),
  returns: [Tungsten.Codegen.Property.t(), ...] | nil,
  spec: map(),
  tungsten_name: atom()
}

Link to this section Functions

Link to this function

from_spec(spec, domain) View Source
from_spec(map(), Tungsten.Codegen.Domain.t()) :: t()

Link to this function

generate(command) View Source
generate(t()) :: Macro.t()

Link to this function

has_required_parameters?(map) View Source
has_required_parameters?(t()) :: boolean()

Returns true if any of the parameters of the given command is required