Home

Awesome

Loki Code Triagers Badge Build Status Hex.pm Ebert

Loki is a toolkit for building powerful command-line interfaces.

img

Example

img

Instalation

Add loki to your list of dependencies in mix.exs:

def deps do
  [{:loki, "~> 1.2.2"}]
end

Usage

Import all or desired module to scope:

defmodule Project do
  # Import all modules
  use Loki

  # Or import single modules
  import Loki.Shell
  import Loki.Cmd
  import Loki.Directory
  import Loki.File
  import Loki.FileManipulation

  ...

end

Modules

Loki.Shell

Helpers for interaction with user and printing message to shell.

Loki.Cmd

Executing terminal commands helpers.

Loki.Directory

Working with folders helpers.

Loki.File

Helpers for working with file.

Loki.FileManipulation

Helpers for content manipulation injecting, appending, and other.

Documentation

Read hexdocs.pm

Contribution

Clone repo, implement additional helpers, write tests and PR welcome!

License

The gem is available as open source under the terms of the MIT License.