mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +02:00
* remove "cscli config backup/restore" * remove backup/restore calls from deb,rpm pre/postinst and wizard * remove from prerm too
20 lines
441 B
Go
20 lines
441 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func (cli *cliConfig) newRestoreCmd() *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "restore",
|
|
DisableAutoGenTag: true,
|
|
RunE: func(cmd *cobra.Command, _ []string) error {
|
|
configDir := cli.cfg().ConfigPaths.ConfigDir
|
|
return fmt.Errorf("'cscli config restore' has been removed, you can manually backup/restore %s instead", configDir)
|
|
},
|
|
}
|
|
|
|
return cmd
|
|
}
|