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:
2
examples/instruction_sample.yaml
Normal file
2
examples/instruction_sample.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
b.c: cat
|
||||
b.e[0].name: Mike Farah
|
||||
2
examples/order.yaml
Normal file
2
examples/order.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
version: 3
|
||||
application: MyApp
|
||||
6
examples/order.yml
Normal file
6
examples/order.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
version: '2'
|
||||
services:
|
||||
test:
|
||||
image: ubuntu:14.04
|
||||
stdin_open: true
|
||||
tty: true
|
||||
1
examples/sample.json
Normal file
1
examples/sample.json
Normal 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
9
examples/sample.yaml
Normal 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
9
examples/sample2.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
a: Easy! as one two three
|
||||
b:
|
||||
c: things
|
||||
d: whatever
|
||||
things:
|
||||
thing1:
|
||||
cat: 'fred'
|
||||
thing2:
|
||||
cat: 'sam'
|
||||
1
examples/sample_array.yaml
Normal file
1
examples/sample_array.yaml
Normal file
@@ -0,0 +1 @@
|
||||
[1,2,3]
|
||||
1
examples/sample_text.yaml
Normal file
1
examples/sample_text.yaml
Normal file
@@ -0,0 +1 @@
|
||||
hi
|
||||
Reference in New Issue
Block a user