Debian Codegraph @

bin/test-yaml

raw
1 #!/usr/bin/bash
2
3 USAGE=<<...
4 Usage:
5
6 test-yaml <test> <options>
7
8 Tests:
9
10 load # Load YAML input and write data output
11 dump # Load data input and write YAML output
12 yny # Load→Dump→Load roundtrip
13 nyn # Dump→Load→Dump roundtrip
14 parse # Parse YAML input and write YAML events
15 emit # Emit YAML events and write YAML output
16
17 Options:
18
19 --in=<file> # Input file
20 --out=<file> # Output file
21 --from=<format> # Input format
22 --to=<format> # Output format
23 --yaml=<framework> # Which YAML implementations to use
24 --test=<tag-spec> # Tags of test cases to use
25
26 Formats:
27 json # JSON input or output
28 perl # Perl code producing or representing data
29
30 Examples:
31
32 test-yaml load --in=file.yaml --to=json --yaml=perl
33 test-yaml dump --in=prog.pl --tag=dump --yaml=perl
34
35 See:
36
37 For more complete doc, run:
38
39 > man test-yaml
40
41 ...