agedit/internal/config/config.go

18 lines
762 B
Go
Raw Normal View History

2024-03-11 20:23:36 -04:00
package config
type Config struct {
IdentityFile string `json:"identityfile" yaml:"identityfile" toml:"identityfile"`
RecipientFile string `json:"recipientfile" yaml:"recipientfile" toml:"recipientfile"`
Editor string `json:"editor" yaml:"editor" toml:"editor"`
EditorArgs []string `json:"editorargs" yaml:"editorargs" toml:"editorargs"`
Prefix string `json:"randomfileprefix" yaml:"randomfileprefix" toml:"randomfileprefix"`
Suffix string `json:"randomfilesuffix" yaml:"randomfilesuffix" toml:"randomfilesuffix"`
RandomLength int `json:"randomfilenamelength" yaml:"randomfilenamelength" toml:"randomfilenamelength"`
2024-03-11 20:23:36 -04:00
}
var Defaults = Config{
Prefix: "agedit_",
Suffix: ".txt",
RandomLength: 13,
}