defenseunicorns / defenseunicorns/uds-cli

feat: multi-call binary

Open
#836 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.