mirror of
https://github.com/mudler/luet.git
synced 2025-08-27 03:18:36 +00:00
* ⬆️ Bump to go 1.19 as requirement for building Signed-off-by: mudler <mudler@c3os.io> * ⬆️ Update vendor * 🤖 Use go 1.19 in CI * 🤖 Do not pull cover from makefile Signed-off-by: mudler <mudler@c3os.io> * 🤖 Fix permission issues Signed-off-by: mudler <mudler@c3os.io> * 🤖 Adapt test to getcap output changes Signed-off-by: mudler <mudler@c3os.io> --------- Signed-off-by: mudler <mudler@c3os.io> |
||
---|---|---|
.. | ||
exec.go | ||
interface.go | ||
load.go | ||
Makefile | ||
README.md | ||
utils.go |
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()
}