Categorygithub.com/mudler/cobra-extensions
modulepackage
0.0.0-20200612154940-31a47105fe3d
Repository: https://github.com/mudler/cobra-extensions.git
Documentation: pkg.go.dev

# README

cobra-extensions

Create git-alike extensions for your cobra projects!

Usage

import "github.com/mudler/cobra-extensions"

// Detect my-awesome-cli-foo, my-awesome-cli-bar in $PATH and extensiopath1 (relative to the bin)
// it also accepts abspath
exts := extensions.Discover("my-awesome-cli", "extensiopath1", "extensiopath2")

fmt.Println("Detected extensions:", exts)

for _, ex := range exts {
  name := ex.Short()
  cobraCmd := ex.CobraCommand()
}

# Functions

Discover returns extensions found in the paths specified and in PATH Extensions must start with the project tag (e.g.
No description provided by the author

# Structs

No description provided by the author

# Interfaces

No description provided by the author