basementdevs / scyllash

13 stars 1 forks source link

feat(config): adding base command synced with toml file #8

Closed DanielHe4rt closed 3 weeks ago

DanielHe4rt commented 3 weeks ago

Motivation

image

CQLsh has as a basis a config file that you can use and we should do the same to make it easier for testing purposes.

When the application start, it will be checking at ~/.config/scyllash/config.toml and if it doesn't exists, the app will create one as a basis to use cloning the default_config.toml:

[connection]
hostname = "127.0.0.1"
port = 9042
username = "scylla"
password = ""
timeout = 10

Clap is an addition to further features which can fit together, like a profile configuration however this we can discuss in another issue.