Support selecting host to use when creating a gist
- 主要言語
- Go
- スター
- 46.3k
- フォーク
- 9k
- 平均マージ
- 2日 6時間
- マージ済み PR(30日)
- 97
説明
### Support selecting host to use when creating a gist
When logged into github.com and an enterprise version of Github, when I go to create a gist, it defaults to creating the gist on github.com. There is no simple way to specify which host to use when creating a gist.
### Proposed solution
I suggest adding a `--host` and `-h` parameter which would allow one to specify which host to use when creating the gist. This will make it easy to select a host on a command by command basis. The host specified should match one listed in`$HOME/.config/gh/hosts.yml`.
### Additional context
For Linux users, the workaround today is to temporarily set the `GH_HOST` variable before running the command, like this:
```
GH_HOST=github.my-company.com gist create ...
```
If this feature is not implemented then I suggest the documentation should be updated to document the workaround above.
コントリビューションガイド
調査の方向性
まず gist create コマンドと、現在それがどのようにホストを選択しているかを特定し、その経路を GH_HOST の回避策および $HOME/.config/gh/hosts.yml に一覧表示されているホストと比較します。設定済みのホストを選択するためのコマンドラインサポートを追加し、デフォルトの動作を変更せずに gist の作成で選択したホストが使用されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- go
- 領域
- cli
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 45/100