https://github.com/berttejeda/bert.yamlcli
Create command-line interfaces in GO from YAML
https://github.com/berttejeda/bert.yamlcli
Last synced: 9 months ago
JSON representation
Create command-line interfaces in GO from YAML
- Host: GitHub
- URL: https://github.com/berttejeda/bert.yamlcli
- Owner: berttejeda
- Created: 2024-08-27T02:07:16.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-06-13T21:04:43.000Z (about 1 year ago)
- Last Synced: 2025-10-07T13:43:22.884Z (9 months ago)
- Language: Go
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Overview
This is a Go library for defining CLI interfaces using yaml files.
The underlying CLI library is [alecthomas/kingpin](https://github.com/alecthomas/kingpin).
# Features
So far, this library supports creating a cli using an ansible playbook with specially formatted vars.
# Usage
```go
package main
import (
"fmt"
"github.com/berttejeda/bert.yamlcli/ansible"
logger "github.com/sirupsen/logrus"
)
func main() {
cli, _ := ansible.MakeCLIFromAnsiblePlaybook("Taskfile.yaml")
fmt.Println(cli)
}
```
# Examples
Consult the [examples](examples) directory.