Feature Request: show service name in prompt
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
調査の方向性
PGCli のエントリポイントから始めて、prompt_dsn がどのように渡され、レンダリングされるかを追跡し、続いて接続オプション service=svc_name の処理を調べます。pg_service.conf のサービスを指定して起動した接続がプロンプトに svc_name を表示し、既存のプロンプトの動作が変わらない状態になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I primarily use pgcli service=svc_name to start pgcli with everything defined in ~/.pg_service.conf. I would like the ability for that service name to appear in the prompt. I currently use \h to show the hostname, but but our hosts are things like psql-dept-tier-azflexdb-application, and I'd much prefer to just see my svc_name in the prompt.
It looks like prompt_dsn is only provided to the PGCli class for the purpose of displaying in the prompt. If we're connecting to a service name, that value could be provided instead, perhaps?
I could just redefine the services as alias_dsn, but we use other tools that use the standard pg_service file, so I really don't want to define them twice.
- 主要言語
- Python
- スター
- 13.4k
- フォーク
- 613
- 平均マージ
- 12時間 45分
- マージ済み PR(30日)
- 5
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dbcli/pgcli のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 64/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
似ている issue
-
essnmx good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
[Feature] 奇物选择添加优先级 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
syfoud/Simulated_Scepter#174 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Giskard-AI/giskard-oss#2840 · コメント 1 件 ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success オープンarea: repo bug perceived difficulty: 2
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
yeti-platform/yeti#1380 ·