Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RelativeToCwd ¶
Types ¶
type Extension ¶
func (Extension) CobraCommand ¶
type ExtensionInterface ¶
type ExtensionInterface interface { String() string Path() string Short() string CobraCommand() *cobra.Command Exec(args []string) error }
func Discover ¶
func Discover(project string, extensionpath ...string) []ExtensionInterface
Discover returns extensions found in the paths specified and in PATH Extensions must start with the project tag (e.g. 'myawesomecli-' )
Click to show internal directories.
Click to hide internal directories.