AshOps.Task.Types (ash_ops v0.2.3)

Custom Spark.Options types for casting and validating CLI arguments.

Summary

Functions

Custom option type for loading an actor

Custom option type for atom

Custom option type for query filters

Custom option type for filter-stdin

Custom option type for an identity

Custom option type for load

Custom option type for positional arguments

Parse a sort input

Types

task()

@type task() :: AshOps.entity()

Functions

actor(input, task)

@spec actor(any(), task()) :: {:ok, Ash.Resource.record()} | {:error, any()}

Custom option type for loading an actor

atom(input, options)

@spec atom(String.t(), [atom()]) :: {:ok, atom()} | {:error, any()}

Custom option type for atom

filter(input)

@spec filter(any()) :: {:ok, String.t()} | {:error, any()}

Custom option type for query filters

filter_stdin(input)

@spec filter_stdin(any()) :: {:ok, boolean()} | {:error, any()}

Custom option type for filter-stdin

identity(identity, task)

@spec identity(any(), task()) :: {:ok, atom()} | {:error, any()}

Custom option type for an identity

load(input, task)

@spec load(any(), task()) :: {:ok, [atom()]} | {:error, any()}

Custom option type for load

positional_arguments(input, task, before_args, after_args)

@spec positional_arguments(
  any(),
  task(),
  Keyword.t(String.t()),
  Keyword.t(String.t())
) ::
  {:ok, [any()]} | {:error, any()}

Custom option type for positional arguments

sort_input(input)

@spec sort_input(any()) :: {:ok, String.t()} | {:error, any()}

Parse a sort input