cmd

package
v0.0.0-...-c0d88ac Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CharSet = &cli.Command{
	Name:        "charset",
	Usage:       "Change charset to html cod",
	Description: `change key in map to value`,
	Action:      runCharSet,
	Flags: []cli.Flag{
		stringFlag("ext, e", strings.Join(settings.ExtFile, ","), "Define the extension type to filter files"),
		stringFlag("file, f", settings.FileName, "Define the file name that needs to change."),
		stringFlag("dir, d", settings.Dir, "Define the folder that will looking for files."),
		boolFlag("backup, b", "Disable backup file when change charset"),
		stringFlag("backupName, bn", settings.BackupName, "Define the file name that needs to change."),
	},
}

CharSet is the main command for application define information about the program as parameters

View Source
var Recovery = &cli.Command{
	Name:        "recovery",
	Usage:       "recovery backup",
	Description: `restore backup files and overwride the file wripped.`,
	Action:      runRecovery,
	Flags: []cli.Flag{
		stringFlag("dir, d", settings.Dir, "Define the folder that will looking for backup's file."),
		stringFlag("backupName, bn", settings.BackupName, "Search files name with extension backup c7."),
		boolFlag("remove, r", "Delete the backup file when finish."),
	},
}

Recovery is command for recovery any data transformed for application

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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