gnorm icon indicating copy to clipboard operation
gnorm copied to clipboard

Optionally Override gnorm.toml ConnStr via cli flag

Open daniel-reed opened this issue 8 years ago • 3 comments

This would allow using db credentials without putting them in a config file.

daniel-reed avatar Oct 15 '17 23:10 daniel-reed

FYI, you can use environment variables transparently in gnorm.tom configuration values, so a ConnStr that has -p=$DB_PASSWORD will do the right thing.

However, I agree that being able to specify the connection string on the CLI is probably also good.

natefinch avatar Oct 15 '17 23:10 natefinch

Thanks for the tip on the environment variables. I'll go that route for now. I'll probably have a pull request for the cli flag next weekend if you agree it has value.

daniel-reed avatar Oct 16 '17 00:10 daniel-reed

definitely think the cli flag would be good, and would love a PR. Maybe -d and --database? unfortunately, -c is already taken. if you could add it to preview and gen, that would be great.

natefinch avatar Oct 16 '17 01:10 natefinch