Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

API to emit completions generated by another library

未關閉
#107 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
48/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
冷清
技術堆疊
bash, typescript
領域
cli

研究方向

從現有的 .parse() 補全路徑開始,並查看連結的 stricli issue 和 tab 討論,以了解整合預期。定義替代 API 應如何發出 Completion 值和指令,同時保留函式庫現有的補全行為;當 stricli 能夠透過新的 API 提供自己的補全時,即視為完成。

由索引模型根據 Issue 內容生成。

描述

stricli already has logic to generate a list of completions. However, they only support bash. They would like to integrate with @bomb.sh/tab but keep their own completion logic.

https://github.com/bloomberg/stricli/issues/137#issuecomment-3897491264

To support this, can tab add an alternative API to .parse() which emits a set of completions and a directive?

Something like this:

/**
 * Write completions and directive to stdout
 */
emitCompletions(completions: Completion[], directive: Directive);

interface Completion {
  value: string;
  description: string;
}
type Directive = number; // Better type based on ShellCompDirective?

Related discussion question: https://github.com/bombshell-dev/tab/discussions/61#discussioncomment-15788617

主要語言
TypeScript
星號
282
分支
11
PR 合併指標
30 天內沒有已合併 PR

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

bombshell-dev/tab 的其他 Issue

查看 bombshell-dev/tab 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。