jirust
jirust copied to clipboard
[Improvement] Prompt/create default config on initialization or missing ~/.config/jirust/config.toml
Issue
The config.toml is required for the app to function. If a user fails to specify one prior to launching the application, the application returns:
Reproduction
Potential Improvement
-
Generate the
config.tomlin a well known location with default settings. -
Provide a more descriptive failure statement:
Could not read file
$HOME/.config/jirust/config.tomlbecomes Could not read file$HOME/.config/jirust/config.toml. You must create ajirustwith aconfig.toml--> $HOME/.config/jirust/config.toml
Note
Of course I should have just read more closely 🤦. I tend to have limited bandwith with young kids, but could try send over a PR if it's within the intent of this project.