Probably use clap to make arg parsing, help, and usage easier.
Some ideas.
psql_connect list should list available DB for connection by alias & number
psql_connect connect db_alias connects to db with that alias (defaults to alias)
psql_connect connect --number 1 connects to db numbered 1
psql_connect connect --alias db_alias connects to db aliased as db_alias
This should be enough to get to a reasonable beta version and provide core functionality of the tool. Hopefully I can get feedback from other users which can shape the API for better, see if there are reasons to add features like creating aliases via the tool, and improve my Rust code.
Probably use
clap
to make arg parsing, help, and usage easier. Some ideas.psql_connect list
should list available DB for connection by alias & numberpsql_connect connect db_alias
connects to db with that alias (defaults to alias)psql_connect connect --number 1
connects to db numbered 1psql_connect connect --alias db_alias
connects to db aliased as db_aliasThis should be enough to get to a reasonable beta version and provide core functionality of the tool. Hopefully I can get feedback from other users which can shape the API for better, see if there are reasons to add features like creating aliases via the tool, and improve my Rust code.