mirror of
https://github.com/mudler/luet.git
synced 2025-09-09 02:59:30 +00:00
Update vendor
This commit is contained in:
19
vendor/github.com/mudler/cobra-extensions/README.md
generated
vendored
Normal file
19
vendor/github.com/mudler/cobra-extensions/README.md
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
# 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()
|
||||
}
|
||||
```
|
Reference in New Issue
Block a user