From acda78729ac29f0fa685620cf63185c6d75d4d39 Mon Sep 17 00:00:00 2001 From: Conor Nosal Date: Thu, 26 Sep 2019 00:07:44 -0400 Subject: [PATCH] Add inspect command --- README.md | 22 ++++++ cmd/commands/inspect.go | 154 ++++++++++++++++++++++++++++++++++++ cmd/manifer/manifer.go | 1 + cmd/manifer/manifer_test.go | 144 ++++++++++++++++++++++++++++++++- lib/maniferlib.go | 56 +++++++++++++ pkg/file/file.go | 22 ++++++ pkg/library/loader.go | 58 ++++++++++++++ pkg/plan/executor.go | 11 ++- pkg/plan/executor_test.go | 6 +- pkg/plan/plan.go | 65 +++++++++++++++ 10 files changed, 533 insertions(+), 6 deletions(-) create mode 100644 cmd/commands/inspect.go create mode 100644 pkg/plan/plan.go diff --git a/README.md b/README.md index 48fb662..2f48e70 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,28 @@ combine the library and template to compose the final document. -library value Path to library file ``` +## inspect +``` +./manifer inspect (--library ...) [--tree|--plan] (-s ...): + inspect scenarios as a dependency tree or execution plan. + -j Print output in json format + -json + Print output in json format + -l value + Path to library file + -library value + Path to library file + -p Print execution plan + -plan + Print execution plan + -s value + Scenario name in library + -scenario value + Scenario name in library + -t Print dependency tree (default) + -tree + Print dependency tree (default) +``` ## compose ``` ./manifer compose --template