config

package
v0.0.0-...-f483c5f Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InstExecWhenStart   = "exec-when-start"
	InstClearWhenExec   = "clear-when-exec"
	InstShouldFinish    = "should-finish"
	InstIgnoreWarn      = "ignore-warn"
	InstIgnoreInfo      = "ignore-info"
	InstIgnoreStdout    = "ignore-stdout"
	InstIgnoreExecError = "ignore-exec-error"
)
View Source
var (
	ProjectFolder = "."
	YamlName      = "ikufile.yaml"
	YamlPath      = ""
	IoeventMapStr = map[fsnotify.Op]string{
		fsnotify.Write:  "write",
		fsnotify.Rename: "rename",
		fsnotify.Remove: "remove",
		fsnotify.Create: "create",
		fsnotify.Chmod:  "chmod",
	}
	Cfg *FileIku
)
View Source
var (

	Statement   = `iKurum [cyan@ikurum.cn] Open Source with MIT License`
	VersionDesc = `` /* 243-byte string literal not displayed */

	FirstRunHelp = `第一次运行 ikufile ?
你可能需要先执行 ikufile init 生成配置。
更多信息使用 ikufile help 查看帮助
`
	HelpStr = `` /* 684-byte string literal not displayed */

	ExampleFileGirl string = `` /* 4258-byte string literal not displayed */

)

Functions

func GetPidFile

func GetPidFile() string

func StopSelf

func StopSelf()

Types

type FileIku

type FileIku struct {
	Monitor struct {
		Types          []string        `yaml:"types"`
		IncludeDirs    []string        `yaml:"includeDirs"`
		ExceptDirs     []string        `yaml:"exceptDirs"`
		Events         []string        `yaml:"events"`
		TypesMap       map[string]bool `yaml:"-"`
		IncludeDirsMap map[string]bool `yaml:"-"`
		ExceptDirsMap  map[string]bool `yaml:"-"`
		DirsMap        map[string]bool `yaml:"-"`
		IncludeDirsRec map[string]bool `yaml:"-"`
	}
	Command struct {
		Exec            []string `yaml:"exec"`
		DelayMillSecond int      `yaml:"delayMillSecond"`
	}
	Notifier struct {
		CallUrl string `yaml:"callUrl"`
	}
	Instruction    []string        `yaml:"instruction"`
	InstructionMap map[string]bool `yaml:"-"`
}

Jump to

Keyboard shortcuts

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