Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: obtain Postgres URL from branches get command (#2996)
* fix:2964/obtain Postgres DB URL from ENV using branches get command Signed-off-by: Yaten Dhingra <yaten598@gmail.com> * added --output-env flag in branches get command Signed-off-by: Yaten Dhingra <yaten598@gmail.com> * fixed typo in internal/branches/get/get.go Signed-off-by: Yaten Dhingra <yaten598@gmail.com> * updated the output-env flag in branches.go Signed-off-by: Yaten Dhingra <yaten598@gmail.com> * changed output var to postgres_url var in branches.go Signed-off-by: Yaten Dhingra <yaten598@gmail.com> * changed postgres_url to output Signed-off-by: Yaten Dhingra <yaten598@gmail.com> * changed checks condition from env to utils.OutputEnv Signed-off-by: Yaten Dhingra <yaten598@gmail.com> * remove cmdFlags condition in cmd/branches.go Co-authored-by: Han Qiao <sweatybridge@gmail.com> * remove cmdFlags in cmd/branches.go Co-authored-by: Han Qiao <sweatybridge@gmail.com> * remove pgconn.Config{} param in get.Run() Co-authored-by: Han Qiao <sweatybridge@gmail.com> * remove unused import in cmd/branches.go Co-authored-by: Han Qiao <sweatybridge@gmail.com> * get DB URL from utils.GetSupabaseDbHost(...) Signed-off-by: Yaten Dhingra <yaten598@gmail.com> * revert to prev table render structure Signed-off-by: Yaten Dhingra <yaten598@gmail.com> * update get.go Signed-off-by: Yaten Dhingra <yaten598@gmail.com> * added postgres connection string Signed-off-by: Yaten Dhingra <yaten598@gmail.com> * removed GetPostgresURLNonPooling func from bootstrap.go Signed-off-by: Yaten Dhingra <yaten598@gmail.com> * remove vars which are not required Signed-off-by: Yaten Dhingra <yaten598@gmail.com> * minor changes in get.go & branches.go Signed-off-by: Yaten Dhingra <yaten598@gmail.com> * convert port from int to uint Signed-off-by: Yaten Dhingra <yaten598@gmail.com> * attempt to fix linter errors Signed-off-by: Yaten Dhingra <yaten598@gmail.com> * attempt to fix uint->uint16 linter error Signed-off-by: Yaten Dhingra <yaten598@gmail.com> * fixed uint->uint16 overflow error Signed-off-by: Yaten Dhingra <yaten598@gmail.com> --------- Signed-off-by: Yaten Dhingra <yaten598@gmail.com> Co-authored-by: Han Qiao <sweatybridge@gmail.com>
- Loading branch information