Open slavakurilyak opened 2 months ago
Hey!
Thank you for the contributing with this issue. I like the idea and I think I might tweak the database_token
to allow to read ENV variable mainly as this is a secret. But I like the idea! :D
Btw, PRs are welcome :D
Problem
Geni currently lacks a way to specify which database to target when running commands, making it challenging to manage multiple libSQL databases in a single project. Additionally, the tool relies solely on environment variables for configuration, which can be cumbersome for projects with multiple databases.
Proposed Solution
--database
or-d
flag for Geni commands to allow specifying the target database.geni.toml
configuration file to define multiple database configurations.Example usage:
Implementation Details
Add support for a
geni.toml
file with the following structure:Modify the Geni CLI to:
--database
flaggeni.toml
file if presentgeni.toml
file is found or no--database
flag is specifiedUpdate the internal logic to use the specified database configuration when executing commands.
Update documentation to reflect the new functionality and
geni.toml
usage.Benefits
Questions
geni.toml
file?geni.toml
, command-line flags, and environment variables?Acceptance Criteria
--database
flag for all relevant commandsgeni.toml
configuration filegeni.toml
configurationgeni.toml
usageYour feedback and additional ideas for this feature are welcome!