-
Notifications
You must be signed in to change notification settings - Fork 263
Use subcommands for example/cli #188
Comments
It does appear overly-complicated at first glance, but the separate commands are an artifact of the plugin-oriented nature of InfraKit. Since plugins are daemons that communicate via sockets, they are built and executed independently. Without language-level support for dynamic library loading, i'm not sure there's a better way. Any ideas? |
@wfarner You could use git-style sub-command resolution. |
@stevvooe not a good fit here, since plugins will be coming from different build sources, and can't be expected to be placed in the same directory. |
@wfarner Git doesn't require this. It just does a search through a path variable. They don't need to be in the same directory. |
Capturing offline discussion with @stevvooe, a CLI-oriented flow won't work well across plugin boundaries as it would require CLI-specific APIs for plugin communication (e.g. surfacing help text, arguments, output, etc). The long-term goal is to delegate plugin management to the environment InfraKit is used in. For example, in Docker Engine we will provide scaffolding to run them as Docker plugins. |
UCP Alpha 3 version bump
It is very odd to have
infrakit/foo
everywhere. No need to have all the different packages. Just use cobra subcommands.The text was updated successfully, but these errors were encountered: