cmd

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2014 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckInstall

func CheckInstall() bool

func CheckUpgrade

func CheckUpgrade(v int, print bool) bool

func DoBackup

func DoBackup(app *GoInk.App, withData bool) (string, error)

DoBackup backups whole files to zip archive. If withData is false, it compresses static files to zip archive without data files, config files and install lock file.

func DoInstall

func DoInstall()

func DoUpdateZipBytes

func DoUpdateZipBytes(file string) error

func DoUpgrade

func DoUpgrade(v int, app *GoInk.App)

func ExtractBundleBytes

func ExtractBundleBytes()

func GetBackupFileAbsPath

func GetBackupFileAbsPath(name string) string

GetBackupFileAbsPath returns backup zip absolute filepath by filename.

func GetBackupFiles

func GetBackupFiles() ([]os.FileInfo, error)

GetBackupFile returns fileinfo slice of all backup files.

func GetLogs

func GetLogs(app *GoInk.App) []*logItem

func GetThemes

func GetThemes(dir string) map[string]*themeItem

func Init

func Init(app *GoInk.App)

func ReadMemStats

func ReadMemStats() *monitorStats

func RemoveBackupFile

func RemoveBackupFile(file string)

RemoveBackupFile removes backup zip file with filename(not filepath).

func RemoveLogFile

func RemoveLogFile(app *GoInk.App, file string)

func SetThemeCache

func SetThemeCache(ctx *GoInk.Context, cache bool)

func SetUpgradeScript

func SetUpgradeScript(v int, script func(app *GoInk.App) bool)

func StartBackupTimer

func StartBackupTimer(app *GoInk.App, t int)

StartBackupTimer starts backup operation timer for auto backup stuff.

Types

This section is empty.

Jump to

Keyboard shortcuts

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