Skip to content

Commit

Permalink
feat(clustertool): add some aliasses to commonly mistaken commands
Browse files Browse the repository at this point in the history
  • Loading branch information
PrivatePuffin committed Nov 7, 2024
1 parent 81f6808 commit de699a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions clustertool/cmd/checkcrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions clustertool/cmd/helmrelease_upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions clustertool/cmd/talos_apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit de699a5

Please sign in to comment.