项目作者: matsubara0507

项目描述 :
Dhall + exports (+ extend)
高级语言: Haskell
项目地址: git://github.com/matsubara0507/dhall-ex.git
创建时间: 2018-11-16T04:27:25Z
项目社区:https://github.com/matsubara0507/dhall-ex

开源协议:MIT License

下载


dhall-ex

Dhall + exports

dhall-ex is cli tool to support dhall.

  1. $ dhall-ex --help
  2. dhall-ex - cli tool to support dhall
  3. Usage: dhall-ex [-v|--verbose] [-c|--config PATH] [--only NAME] COMMAND
  4. [--version]
  5. Available options:
  6. -v,--verbose Enable verbose mode: verbosity level "debug"
  7. -c,--config PATH Configuration file
  8. --only NAME Exec subcommand only NAME in config
  9. --version Show version
  10. -h,--help Show this help text
  11. Available commands:
  12. sort Sort record keys in dhall file
  13. echo Echo TEXT
  14. init Init dhall-ex work directory
  15. build Build Dhall file to YAML or JSON
  16. deploy Deploy builded config file to remote repository
  17. checkout Checkout repository in dhall workspace
  18. pull Pull repository in dhall workspace

Requirement

Install

Use Haskell Stack:

  1. $ stack install

or use docker:

  1. $ docker pull matsubara0507/dhall-ex

Usage

Write dhall-ex’s config file .dhall-ex.dhall typed by dhall/dhall-ex-type.dhall.
Exec echo subcommand to type check dhall’s config file:

  1. $ dhall-ex echo hoge
  2. hoge

If use docker:

  1. $ docker run --rm -v `pwd`:/work matsubara0507/dhall-ex /bin/bash -c "cd work && dhall-ex echo 'hello docker'"
  2. hello docker

Initialize dhall workspace with dhall’s config file:

  1. $ dhall-ex init

Build all config files that be wanted to export with dhall’s config file:

  1. $ dhall-ex build

Commit and Push builded config files if builded config file is in GitHub repository:

  1. $ dhall-ex deploy -b BRANCH