paritytech / opstooling-js

Shared functionality for OpsTooling projects
https://www.npmjs.com/package/@eng-automation/js
Apache License 2.0
0 stars 1 forks source link

Consider exporting a cli "umbrella" interface #13

Closed mutantcornholio closed 2 years ago

mutantcornholio commented 2 years ago

While considering pathways to https://github.com/paritytech/opstooling/issues/125, I realised that we probably will have more than one shared script between projects.
WDYT on adding bin section to the package, with subcommands to later extension?

I have something like this in mind:

In terms of libraries, I'm a big fan of commander package, but anything aside from inventing it from scratch is fine by me.

I'm also open to other approaches for the sharing scripts problem.

cc/ @paritytech/opstooling

joao-paulo-parity commented 2 years ago

Fine by me

koenw commented 2 years ago

Fine with me too :)

mutantcornholio commented 2 years ago

Any opinions on compiling code on install vs. using ts-node on execution?

I personally prefer compiling, but ts-node seems to be more consistent with other configurations that we have.

I think I'll start with ts-node, but that's easy enough to change at any moment, without breaking backwards-compatibility