notryanb / psql_connect

Easily log into psql from connection strings in .pgpass file
0 stars 0 forks source link

Figure out CLI API #1

Open notryanb opened 6 years ago

notryanb commented 6 years ago

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.

notryanb commented 6 years ago

Might want to see if quicli can clean up the app and remove some boilerplate.