cmd

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 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 added in v0.1.5

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 added in v0.1.5

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

func ExtractBundleBytes added in v0.1.5

func ExtractBundleBytes()

func GetBackupFileAbsPath added in v0.2.0

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 added in v0.2.0

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

func GetThemes added in v0.2.5

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

func Init added in v0.2.5

func Init(app *GoInk.App)

func ReadMemStats added in v0.2.0

func ReadMemStats() *monitorStats

func RemoveBackupFile

func RemoveBackupFile(file string)

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

func RemoveLogFile added in v0.2.0

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

func SetThemeCache added in v0.2.5

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

func SetUpgradeScript added in v0.1.5

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

func StartBackupTimer added in v0.2.5

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