Skip to content

feat: run cluster templating non interactive #17

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

leonsteinhaeuser
Copy link
Owner

Description

This PR adds a non-interactive functionality to render the cluster configuration to disk. The interactive menu has not been touched and is not expected to break. To use the non-interactive functionality, add the 'run' subcommand to the CLI run command. The CLI also supports rendering an helper menu. To open the menu, define the “-h” or “--help” flag as part of the command. This will display the context menu with all available subcommands and flags available at this level.

Example:

helper menu:

go run cmd/main.go --help                                     
Usage:
  root [flags]
  root [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  help        Help about any command
  run         Render the cluster configuration

Flags:
  -h, --help   help for root

Use "root [command] --help" for more information about a command.

render cluster:

go run cmd/main.go run -e dev -s dev -c hugi

@leonsteinhaeuser leonsteinhaeuser self-assigned this Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant