revert

package
v0.0.0-...-8c65269 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL