diff options
Diffstat (limited to 'tests/manifest/driver.cxx')
-rw-r--r-- | tests/manifest/driver.cxx | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/tests/manifest/driver.cxx b/tests/manifest/driver.cxx index b7a87eb..9c58dcf 100644 --- a/tests/manifest/driver.cxx +++ b/tests/manifest/driver.cxx @@ -21,8 +21,10 @@ using namespace bpkg; // Read and parse manifest from STDIN and serialize it to STDOUT. The // following options specify the manifest type. // -// -p parse package manifest list -// -r parse repository manifest list +// -bp parse bpkg package manifest list +// -gp parse git package manifest list +// -br parse bpkg repository manifest list +// -gr parse git repository manifest list // -s parse signature manifest // int @@ -37,10 +39,14 @@ main (int argc, char* argv[]) manifest_parser p (cin, "stdin"); manifest_serializer s (cout, "stdout"); - if (opt == "-p") - package_manifests (p).serialize (s); - else if (opt == "-r") - repository_manifests (p).serialize (s); + if (opt == "-bp") + bpkg_package_manifests (p).serialize (s); + else if (opt == "-br") + bpkg_repository_manifests (p).serialize (s); + else if (opt == "-gp") + git_package_manifests (p).serialize (s); + else if (opt == "-gr") + git_repository_manifests (p).serialize (s); else if (opt == "-s") signature_manifest (p).serialize (s); else |