Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RevertCmd = &cobra.Command{ Use: "revert", Short: "Reverets back to the specyfied previous .config cofiguration", Long: `Brings the confguration to the previouse state by deleting all the files and moving back the one that existed before.It also deletes the specyfied backup directory`, Run: func(cmd *cobra.Command, args []string) { if cmd.Flags().Changed("delete") { deletBackup() } else { err := RevertBackups() if err != nil { log.Fatal(err) } } }, }
Functions ¶
func RevertBackups ¶
func RevertBackups() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.