bitrise-io / stepman

Step collection manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

get spec.json of a specified collection

viktorbenei opened this issue · comments

so that other tools can work with the spec.json directly, when required

stepman got a new command export-spec which you can use to export the specified StepLib spec. PR: #197

Lets try this again. export-spec is great, but we'd also need a collection-path or similar command, which does not export the spec into a new file, instead it prints the path of the collection/spec!

Use case: a plugin which needs to read the spec.json of a collection, e.g. to list steps by a filter.

In the new stepman release, the collections command will print, the steplib's spec_path as well.

...
https://github.com/bitrise-io/bitrise-steplib
  spec_path: $HOME/.stepman/step_collections/1481200315/spec/spec.json
...