input: support file/stdin source for text/json/yaml
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
4
tests/cli/input/simple/testdata/input.json
vendored
Normal file
4
tests/cli/input/simple/testdata/input.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"a": "from file",
|
||||
"b": 42
|
||||
}
|
1
tests/cli/input/simple/testdata/input.txt
vendored
Normal file
1
tests/cli/input/simple/testdata/input.txt
vendored
Normal file
@@ -0,0 +1 @@
|
||||
from file
|
2
tests/cli/input/simple/testdata/input.yaml
vendored
Normal file
2
tests/cli/input/simple/testdata/input.yaml
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
a: "from file"
|
||||
b: 42
|
Reference in New Issue
Block a user