Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.
/ medusa-plugins Public archive

An idea to have cobra subcommands as separate binary plugins

Notifications You must be signed in to change notification settings

guumaster/medusa-plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Medusa plugins

This is just an idea to see if I can create a generic plugin system for cobra

references

There is some previous work, but all too specific to one command.

general idea

All follow a similar pattern:

  • compose the subcomand name
  • search the binary in $PATH
  • execute it

A helper package can help leverage all this boilerplate code and make it simple to discover, add and run plugins.

features to consider

  • multi language support (go, bash, etc)
  • discover and install plugins easily like scoop or brew
  • sub command should be aware of environment and parent flags

About

An idea to have cobra subcommands as separate binary plugins

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published