manageConfigFile

Writes and/or edits the configuration file. Broken out into a separate function to lower the size of handleGetopt.

private @safe @system
void
manageConfigFile
(,
const Flag!"shouldWriteConfig" shouldWriteConfig
,
const Flag!"shouldOpenTerminalEditor" shouldOpenTerminalEditor
,
const Flag!"shouldOpenGraphicalEditor" shouldOpenGraphicalEditor
,
const Flag!"force" force
)

Parameters

instance Kameloso

The current Kameloso instance.

shouldWriteConfig Flag!"shouldWriteConfig"

Writing to the configuration file was explicitly requested or implicitly by changing some setting via getopt.

shouldOpenTerminalEditor Flag!"shouldOpenTerminalEditor"

Opening the configuration file in a terminal text editor was requested.

shouldOpenGraphicalEditor Flag!"shouldOpenGraphicalEditor"

Opening the configuration file in a graphical text editor was requested.

force Flag!"force"

(Windows) If set, uses explorer.exe as the graphical editor, otherwise uses notepad.exe.