deepgram / deepgram-cli

CLI for Deepgram's automated speech recognition APIs.
MIT License
7 stars 4 forks source link

Example of Consuming an External CLI Plugin #11

Closed dvonthenen closed 1 month ago

dvonthenen commented 1 month ago

This is an example of consuming an external plugin into a CLI. The external plugin code is found here: https://github.com/deepgram-starters/example-starter-plugin/pull/1

This PR needs to be built on top of the previous one because I needed CLI Cobra infrastructure to add plugin commands. Builds on this PR: https://github.com/deepgram-devs/deepgram-cli/pull/8

This looks like a lot of code, but if you want to isolate the plugin differences, you can look at this diff: https://github.com/dvonthenen/deepgram-cli/compare/scaffold-cli-commands...dvonthenen:deepgram-cli:cli-plugins

Small additional changes: