mix myelin.copy (myelin v0.1.1)

Copy Markdown View Source

Copies a script out of the library and into your application.

You do not need this to run a script. Everything the library ships is already on the search path, dormant, and one line of configuration switches it on:

config :myelin, scripts: %{"keyboard" => %{enabled: true}}

Copy one when you want to change it. The copy sits later on the search path than the bundled version, so it replaces it:

mix myelin.copy                          # what there is, and how to switch it on
mix myelin.copy --list                   # the same list
mix myelin.copy navbar statusbar         # into priv/myelin
mix myelin.copy statusbar --into priv/kiosk_scripts
mix myelin.copy keyboard --force         # overwrite an existing copy

A copied script is yours: edit it, commit it, and an upgrade will not touch it. That is also why an existing directory is left alone unless you pass --force.