API to emit completions generated by another library
還沒有人認領這個 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,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
bombshell-dev/tab 的其他 Issue
-
An option is resolved from the root before the matched command, so a short name means one thing for the whole line可能已有人在做 @AmirSa12 於 20 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 56/100
bombshell-dev/tab#153 · 6 則留言 ·
-
enhancement
難度 3/5 1-2 天 新手友好度 55/100
bombshell-dev/tab#127 · 2 則留言 ·
-
難度 3/5 1-2 天 新手友好度 55/100
bombshell-dev/tab#118 ·
-
provide installation utilities可能已有人在做 @theoephraim 於 150 天前認領。 未關閉
難度 5/5 一週以上 新手友好度 35/100
bombshell-dev/tab#117 ·
-
documentation enhancement
難度 5/5 一週以上 新手友好度 30/100
bombshell-dev/tab#106 · 1 則留言 ·
查看 bombshell-dev/tab 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
openremote/openremote#3487 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 82/100
coollabsio/jean#867 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
ehmpathy/rhachet-roles-bhuild#616 ·
維護者通常 1 天內回覆
-
📘 Docs supabase/cli
難度 2/5 1-3 小時 新手友好度 83/100
維護者通常 1 天內回覆
-
bug(cli): theme file home-directory check uses startsWith (sibling dirs pass, Windows casing fails)未關閉area/core kind/bug priority/p2 status/bot-triaged
難度 2/5 1-3 小時 新手友好度 79/100
google-gemini/gemini-cli#29955 · 2 則留言 ·
維護者通常 1 天內回覆