Skip to content

Commit

Permalink
🧹 Add noop migrate command (#294)
Browse files Browse the repository at this point in the history
This fixes error messages during deb/rpm package install

Signed-off-by: Christian Zunker <[email protected]>
  • Loading branch information
czunker authored Jan 18, 2023
1 parent 7f6fce5 commit a87d287
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions apps/cnspec/cmd/migrate.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package cmd

import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
)

// migrateCmd helps to migrate user config to the latest version
var migrateCmd = &cobra.Command{
Use: "migrate",
Short: "Migrate cnspec CLI configuration to the latest version",
Run: func(cmd *cobra.Command, args []string) {
log.Info().Msg("No migration needed.")
},
}

func init() {
rootCmd.AddCommand(migrateCmd)
}

0 comments on commit a87d287

Please sign in to comment.