Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(modify bool)
Create initiates an interactive setup for the config file. The "modify" parameter specifies if the setup is being used to modify an exiting config instead of staring from scratch.
func Path ¶
func Path() string
Path returns the absolute path to the manga-translator files directory.
func SaveConfig ¶
func SaveConfig(cfg File)
SaveConfig saves the given ConfigFile object in "mtl/mtl-config.yml".
Types ¶
type File ¶
type File struct { CloudVision struct { CredentialsPath string `yaml:"credentialsPath"` } `yaml:"cloudVision"` Translation struct { SelectedService string `yaml:"selectedService"` SourceLanguage string `yaml:"sourceLanguage,omitempty"` TargetLanguage string `yaml:"targetLanguage"` Google struct { APIKey string `yaml:"apiKey,omitempty"` } `yaml:"google,omitempty"` DeepL struct { APIKey string `yaml:"apiKey,omitempty"` } `yaml:"deepL,omitempty"` } `yaml:"translation"` }
File is the mtl/mtl-config.yml structure.
Click to show internal directories.
Click to hide internal directories.