View Source Expublish.Options (expublish v2.7.3)
Validate and parse mix task arguments.
Link to this section Summary
Functions
Default options used for every run.
Parse mix task arguments and merge with default options.
Print help to stdout.
Validates options and level combinations.
Link to this section Types
@type level() :: :major | :minor | :patch | :rc | :beta | :alpha | :stable
@type t() :: %Expublish.Options{ allow_untracked: term(), as_major: term(), as_minor: term(), branch: term(), changelog_date_time: term(), commit_prefix: term(), disable_publish: term(), disable_push: term(), disable_test: term(), dry_run: term(), help: term(), remote: term(), tag_prefix: term(), version_file: term() }
Link to this section Functions
@spec defaults() :: t()
Default options used for every run.
%Expublish.Options{
allow_untracked: false,
as_major: false,
as_minor: false,
branch: "master",
changelog_date_time: false,
commit_prefix: "Version release",
disable_publish: false,
disable_push: false,
disable_test: false,
dry_run: false,
help: false,
remote: "origin",
tag_prefix: "v",
version_file: "mix.exs"
}
Parse mix task arguments and merge with default options.
@spec print_help() :: :ok
Print help to stdout.
Validates options and level combinations.
Returns :ok or error message.