Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

provide installation utilities

オープン
#117 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@theoephraim がすでに取り組んでいます。

2026年5月29日 から。

  • #119 @theoephraim による — オープン

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
静か
技術スタック
typescript
領域
cli

調査の方向性

まず、tab が現在どのようにシェル補完を公開しているか、また利用する CLI が my-cli init や my-cli complete --install のようなコマンドを通じてそれらをどのように統合するかを調べます。この issue で示されているサポート対象のインストールおよびシェルのケースを、スタンドアロン、グローバルな npm、プロジェクトローカルのインストールを含めて定義します。完了とは、インストールユーティリティのスコープと動作について合意し、実装したうえで、サポート対象の各ケースを検証できることを意味します。

索引モデルが issue の本文から書いたものです。

説明

CLIs using tab will ideally provide a bit of functionality to help the user install completions. Since we'll all be recreating the same logic, it seems to me like it should be built into tab itself. It should probably be provided as a utility function which can be either invoked within a larger setup flow (my-cli init) or as specific command (my-cli complete --install)

I haven't dug in too deep yet, but I'm imagining this would:

  • detect the current shell (if not passed in explicitly)
  • check if the completions are already installed
  • either install or update the completion setup

In the process of figuring this out for our CLI (https://varlock.dev), I also realized that the way the CLI is installed can affect how it must be set up. Our tool can be installed as a standalone binary via curl or brew, as a global node_module (npm i -g), or within a project's node_modules. The installation utilities should also probably take care of detecting how the cli is installed and warn (or error?) if the tool is not on the user's PATH.

Supporting completions for locally installed packages invoked via package manager (pnpm exec my-cli) is something I'd love to see happen, but I'm guessing it's just not possible unless the package managers themselves support it?

主要言語
TypeScript
スター
280
フォーク
11
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bombshell-dev/tab のほかの issue

bombshell-dev/tab の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。