Skip to content

JasonGiedymin/yaml-injector

Repository files navigation

Yaml Injector

Yaml Injector v0.2.0 - Jason Giedymin

Download

See releases for the latest downloads.

Current release is v0.2.0.

Available in:

Installation

To Install:

# TODO

Usage

Running (if installed):

yaml-injector \
  --debug \
  --test \
  --file test/input.yaml \
  --using test/data.yaml \
  --key "b[0]" \
  inject into "a"

See the Makefile for expanded example usage.

Development

Depencencies:

gpm install

Testing:

Uses a makefile. Call upon the unit-tests make task:

make tests

Commands

Current commands are:

-----------------------Commands:----------------------
 help            : Test help listing 

                   Helpers 
 benchmark       : Run benchmark 
 clean           : Cleans project dirs (runs all clean cmds) 

                   Tests 
 clean test      : Cleans test dir 
 tests           : Runs all unit tests 
 test-datafile   : Test with datafile to stdout 
 test-preview    : Test preview functionality to stdout 
 test-stdin      : Stdin JSON usage with debug output 
 test-stdin      : Run with stdin JSON usage to stdout 

                   Integration Tests 
 itest-stdin     : Integration test for stdin. 

                   Builds 
 build           : Build all binaries. 
 build-linux64   : Build linux 64 bit binary. 
 build-darwin64  : Build darwin 64 bit binary. 
 clean-target    : Cleans build targets dir. 
------------------------------------------------------

Benchmarks

Comments:
  - 1ms == 1000000ns

12/31/2014

            Test               Runs           Time/Op         Mem/Op          Mem/Stats
BenchmarkMapInPlaceSelector   500000        3431 ns/op       546 B/op       19 allocs/op
BenchmarkGetKey              5000000         532 ns/op        66 B/op        3 allocs/op

Comments:
  - 3431ns per operation == 0.003431 ms
  -  532ns per operation == 0.000532 ms

1/1/2015

            Test               Runs           Time/Op         Mem/Op          Mem/Stats
BenchmarkGetValue            5000000         532 ns/op        67 B/op        3 allocs/op
BenchmarkMapInPlaceSelector   500000        3013 ns/op       550 B/op       16 allocs/op
BenchmarkInject                20000      100228 ns/op     34884 B/op      300 allocs/op

Comments:
  - 3013ns per operation == 0.003013 ms

License

yaml-injector is under the Apache 2.0 license. See the LICENSE file for details.

Todo

See TODO file for details.