Accrue.Install.Options (accrue v0.3.1)

Copy Markdown View Source

Strict option parsing for mix accrue.install.

Every installer product choice has a CLI flag so CI and scripted installs can run without prompts.

Summary

Functions

Parses installer argv, raising on unknown switches or positional args.

Types

auto_boolean()

@type auto_boolean() :: boolean() | :auto

t()

@type t() :: %Accrue.Install.Options{
  accept?: boolean(),
  admin: auto_boolean(),
  admin_mount: String.t(),
  billable: String.t() | nil,
  billing_context: String.t(),
  check: boolean(),
  dry_run: boolean(),
  force: boolean(),
  manual: boolean(),
  sigra: auto_boolean(),
  webhook_path: String.t(),
  write_conflicts: boolean()
}

Functions

parse!(argv)

@spec parse!([String.t()]) :: t()

Parses installer argv, raising on unknown switches or positional args.