basementdevs / scyllash

13 stars 1 forks source link

feat: creating base config file #7

Closed DanielHe4rt closed 3 weeks ago

DanielHe4rt commented 3 weeks ago

Feature: Config File

After running/installing the first time, would be good to generate a default config file with all keys used in our project.

Here's a sample:

[connection]
hostname = "127.0.0.1"
port = 9142

[cql]
version = "3.3.1"

[prompt]
style = "ScyllaSH> "

[colors]
keyword = "cyan"
string = "green"
number = "yellow"
error = "red"

[metrics]
enabled = true
refresh_interval = 5

The most important ATM would be the connection section, which can be merged with clap.rs if empty.

Tasks