Skip to content

podhmo/nejimaki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nejimaki

https://travis-ci.org/podhmo/nejimaki.svg?branch=master

generating file tree from one yamle file.

example

data.yaml

./conf:
  ./base:
    base.yaml:
      logging:
        asctime: 2013-04-10 15:39:26,014
        created: 1365604766.014612
        levelname: INFO
        message: test message
        name: logger_name
  dev.yaml:
    debug: true
    $inherits: "./base/base.yaml"
  staging.yaml:
    debug: false
    $inherits: "./base/base.yaml"
  production.yaml:
    $inherits: "./staging.yaml"
$ nejimaki examples/readme/data.yaml --position=examples/readme
 INFO   nejimaki      emit:conf/base/base.yaml
 INFO   nejimaki      emit:conf/dev.yaml
 INFO   nejimaki      emit:conf/staging.yaml
 INFO   nejimaki      emit:conf/production.yaml

$ tree examples/readme/conf
examples/readme/conf
├── base
│   └── base.yaml
├── dev.yaml
├── production.yaml
└── staging.yaml

1 directory, 4 files

About

emit files from one yaml file

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors