diversicon-kb / divercli

Command Line Interface for Diversicon
http://diversicon-kb.eu/tools
Other
0 stars 0 forks source link

DiverCLI should have one project per folder #3

Closed DavidLeoni closed 7 years ago

DavidLeoni commented 8 years ago

Currently DiverCLI stores current db config in ~/.config/divercli/divercli.ini, but this could cause the user to mistakenly execute commands on the wrong database.

Seems better to have DiverCli look for configuration in the directory it is launched from, a bit like git or maven. In ~/.config/divercli/divercli.ini we can always keep global settings.

A directory setup for a H2 file DB could look like this (note DB could actually stay somewhere else):

.divercli/divercli.ini
my-diversicon.h2.db
my-diversicon.lock
some-custom-script.sql

Directories to connect to remote dbs like PostGRE instead might look like

.divercli/divercli.ini
some-custom-script.sql
some-id.key

~/.ssh/other-id.rsa