yaml-injector

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

README

Yaml Injector

Yaml Injector v0.2.0 - Jason Giedymin

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 
 cleans          : Cleans test dir 

                   Tests 
 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. 
------------------------------------------------------

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL