Vibe.CLI.Command behaviour (vibe v0.2.2)

Copy Markdown View Source

CLI command dispatch and behaviour definition.

Summary

Callbacks

names()

@callback names() :: [String.t()]

run(list, keyword)

@callback run(
  [String.t()],
  keyword()
) :: :ok | {:error, term()}

Functions

dispatch(map)

@spec dispatch(Vibe.CLI.Parser.parsed()) :: :ok | {:error, term()}