antikythera v0.2.0 mix antikythera.gear.new View Source

Generates a mix project for a new gear application.

Usage

This mix task must be run from a mix project directory of either your antikythera instance or one of gears in your antikythera instance.

mix antikythera.gear.new PATH

Basename of PATH becomes the name of your gear. For example, if ~/workspace/my_gear is used, my_gear becomes your gear name.

Newly generated gear automatically belongs to an antikythera instance inferred from the mix project you are currently in.

You can also manually specify your antikythera instance via ANTIKYTHERA_INSTANCE_DEP environment variable like so:

ANTIKYTHERA_INSTANCE_DEP='{:instance_name, [git: "git@github.com:your_org/instance_name.git"]}' mix antikythera.gear.new PATH

ANTIKYTHERA_INSTANCE_DEP must be a valid dependency tuple used in mix.exs files. See mix deps doc for available options.

In order to sync development environment configurations with your antikythera instance and other gears, this generator creates symbolic links to these files, if they exist in the current directory:

  • .credo.exs

    • Configuration file for static code analysis tool Credo
  • .tool-versions

    • Local versions file for version manager tool asdf

Link to this section Summary

Functions

A task needs to implement run which receives a list of command line args

Link to this section Functions

A task needs to implement run which receives a list of command line args.

Callback implementation for Mix.Task.run/1.