defenseunicorns / defenseunicorns/uds-cli
feat: multi-call binary
Open
enhancement
- Dominant language
- Go
- Stars
- 54
- Forks
- 21
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 45
Description
For embedded CLIs under UDS-CLI (zarf, maru, yq, k9s, etc...) add the ability for UDS-CLI to be a multi-call binary (like [busybox](https://www.busybox.net/downloads/BusyBox.html)).
### Describe the solution you'd like
- **Given** UDS-CLI is symlinked as `zarf` or `kubectl`, etc...
- **When** the CLI is called via one of these symlinks
- **Then** the CLI runs as though it is that binary
```go
func main() {
switch filepath.Base(os.Args[0]) {
case "zarf":
...
case "kubectl"
...
case "k9s"
...
case "uds-monitor"
...
default:
cmd.Execute()
}
Contributor guide
Assessment
This issue has not been assessed yet.