vadimdemedes / pastel

🎨 Next.js-like framework for CLIs made with Ink
https://term.ink/pastel
MIT License
2.2k stars 36 forks source link

expose program to public to solve issue with global options #60

Closed olegtaranenko closed 1 year ago

olegtaranenko commented 1 year ago

there is a draft. Another option is changing Option to get additional property for globals. Global options are options on top level Command object they are gathered with method Commander.opts() and accessible to any (sub)sommand.

vadimdemedes commented 1 year ago

See https://github.com/vadimdemedes/pastel/issues/62#issuecomment-1586280349.