action icon indicating copy to clipboard operation
action copied to clipboard

Split the generateDocs as lib or cli

Open hellodword opened this issue 1 year ago • 1 comments

So we can use it everywhere not only in the GitHub Actions :)

A simple PoC here: https://github.com/hellodword/action/tree/patch-3

Try it with:

npx ts-node ./src/cli/main.ts features docs --owner ohhh --repo wuw ./__tests__/examples/simple/src

And, would it be better to implement generateDocs and validate things in the upstream cli?

devcontainer features validate
devcontainer features docs
devcontainer templates validate
devcontainer templates docs
...

Two implementations always have differences.

hellodword avatar Feb 15 '24 07:02 hellodword

And, would it be better to implement generateDocs and validate things in the upstream cli?

This does make sense and would be nice to extend it for more usage. Feel free to contribute a PR if you are interested, we appreciate support from the community. Thanks!

samruddhikhandale avatar Feb 16 '24 01:02 samruddhikhandale