1
0
mirror of https://github.com/taigrr/yq synced 2025-01-18 04:53:17 -08:00

Task: Simplify development

The base directory has all shell scripts in scripts/
and all example/test files in examples/.
A Makefile provides all the commands with helpful information.
If a developer simply types `make` then vendor is properly updated,
the code is formatted, linted, tested, built, acceptance test run,
and installed.

Linting errors resolved.
Ignored test case (`TestParsePath`) updated to work as expected.
This commit is contained in:
kenjones
2017-09-20 19:40:33 -04:00
committed by Mike Farah
parent 1ed8e7017e
commit 86639acf70
33 changed files with 351 additions and 53 deletions

View File

@@ -0,0 +1,2 @@
b.c: cat
b.e[0].name: Mike Farah

2
examples/order.yaml Normal file
View File

@@ -0,0 +1,2 @@
version: 3
application: MyApp

6
examples/order.yml Normal file
View File

@@ -0,0 +1,6 @@
version: '2'
services:
test:
image: ubuntu:14.04
stdin_open: true
tty: true

1
examples/sample.json Normal file
View File

@@ -0,0 +1 @@
{"a":"Easy! as one two three","b":{"c":2,"d":[3,4],"e":[{"name":"fred","value":3},{"name":"sam","value":4}]}}

9
examples/sample.yaml Normal file
View File

@@ -0,0 +1,9 @@
a: Easy! as one two three
b:
c: 2
d: [3, 4]
e:
- name: fred
value: 3
- name: sam
value: 4

9
examples/sample2.yaml Normal file
View File

@@ -0,0 +1,9 @@
a: Easy! as one two three
b:
c: things
d: whatever
things:
thing1:
cat: 'fred'
thing2:
cat: 'sam'

View File

@@ -0,0 +1 @@
[1,2,3]

View File

@@ -0,0 +1 @@
hi