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

Parameters

instance Kameloso

The current Kameloso instance.

shouldWriteConfig bool

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

shouldOpenTerminalEditor bool

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

shouldOpenGraphicalEditor bool

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

force bool

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