feat(clustertool): add some aliasses to commonly mistaken commands

This commit is contained in:
Kjeld Schouten
2024-11-07 12:14:57 +01:00
parent 81f6808581
commit de699a5992
3 changed files with 3 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ This tool can, for example, be used as a pre-commit check and will fail with a n
var checkcrypt = &cobra.Command{
Use: "checkcrypt",
Short: "Checks if all files are encrypted correctly in accordance with .sops.yaml",
Aliases: []string{"checkencrypt"},
Example: "clustertool checkcrypt",
Long: checkcyptLongHelp,
Run: func(cmd *cobra.Command, args []string) {

View File

@@ -16,6 +16,7 @@ var hrUpgradeLongHelp = strings.TrimSpace(`
var hrupgrade = &cobra.Command{
Use: "upgrade",
Short: "run helm-upgrade using a helm-release file without flux",
Aliases: []string{"update", "edit"},
Example: "clustertool helmrelease upgrade",
Long: hrUpgradeLongHelp,
Run: func(cmd *cobra.Command, args []string) {

View File

@@ -47,6 +47,7 @@ Not any contained helm-charts
var apply = &cobra.Command{
Use: "apply",
Short: "apply",
Aliases: []string{"apply-config"},
Example: "clustertool apply <NodeIP>",
Long: applyLongHelp,
Run: func(cmd *cobra.Command, args []string) {