mix tinfoil.init (tinfoil v0.2.22)

Copy Markdown View Source

Initialize tinfoil for the current mix project.

By default, if no :tinfoil config is found in mix.exs, this task prints a snippet to paste and exits. If a config is already present, it generates the release pipeline files:

  • .github/workflows/release.yml
  • .tinfoil/formula.rb.eex (if :homebrew enabled)
  • scripts/install.sh (if :installer enabled)

Flags

  • --install — splice {:tinfoil, ...} into deps/0 and a minimal :tinfoil config into project/0, then run mix deps.get. Only touches mix.exs files that still match the mix new layout; on anything more customized it falls back to printing the snippet.
  • --force — overwrite existing generated files (default: true)
  • --print — print the suggested config snippet and exit