Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: multi-call binary #836

Open
Noxsios opened this issue Jul 22, 2024 · 0 comments
Open

feat: multi-call binary #836

Noxsios opened this issue Jul 22, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Noxsios
Copy link
Contributor

Noxsios commented Jul 22, 2024

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).

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
func main() {
    switch filepath.Base(os.Args[0]) {
    case "zarf":
    ...
    case "kubectl"
    ...
    case "k9s"
    ...
    case "uds-monitor"
    ...
    default:
    cmd.Execute()
}
@Noxsios Noxsios added the enhancement New feature or request label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant