Packages

Declare the external command-line tools your app needs, check they are installed with version constraints, cache the result, and tell users how to install what is missing.

Current section

Files

Jump to
cli_deps .formatter.exs
Raw

.formatter.exs

# `export` lets consuming projects pick this up via
# `import_deps: [:cli_deps]`, so `tool :ffmpeg, version: ">= 6.0.0"` keeps
# reading like a declaration rather than a function call in their code too.
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"],
locals_without_parens: [tool: 1, tool: 2],
export: [locals_without_parens: [tool: 1, tool: 2]]
]