Reduce the number of characters needed for specifying which package is being selected
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 30/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 領域
- cli
調査の方向性
Start by tracing the CLI package-selection flow and the package section of spago.yaml. Compare the proposed cli-alias approach with fuzzy matching, then define how aliases are configured, resolved, and validated; done means a package can be selected by its alias without changing existing name-based selection.
索引モデルが issue の本文から書いたものです。
説明
The new spago's CLI allows one to select a package by referring to it via package name. However, this choice is somewhat problematic in a few situations:
- when the package name is long, whether due to multiple parts within the name (e.g.
node-some-special-package-name) or due to long words within the name (e.g.uncopyrightable-sesquipedalian-packagecourtesy of 13 of the Longest Words in the English Language - when the letters used within the package name happen to be a particular sequence of characters that the current user is prone to misspell (e.g. switching
iandoin-tion)
I propose we make it possible to reduce the number of character used. There are a few ways to do this:
- In
spago.yaml, add a new fieldcli-aliasin thepackagesection that allows one to use that alias string in addition to the package name. Given a package nameuncopyrightable-sesquipedalian-packageand an aliaslib, bothspago install -p uncopyrightable-sesquipedalian-packageandspago install -p libmodify the same package's dependencies). - In the CLI, add some sort of fuzzy matching on the package names to guess which package is the selected one.
Of these two, I prefer the first one.
- 主要言語
- PureScript
- スター
- 830
- フォーク
- 138
- 平均マージ
- 6時間 21分
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
purescript/spago のほかの issue
-
Illegible search input text in `spago docs` app (low contrast) in system dark mode対応中かも @pete-murphy が 92 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
purescript/spago#1408 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
purescript/spago#1403 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 22/100
purescript/spago#1426 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
purescript/spago#1386 · コメント 1 件 ·
-
bug UX
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
purescript/spago#1330 · コメント 2 件 ·
purescript/spago の issue をすべて見る
似ている issue
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
graygarbage/HermesKey#21 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Edwin-metcalf/MetCode#16 ·
-
area: server enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
scs0209/laya-guard#52 ·
メンテナーはふだん 1 日以内に返信
-
Galaxy tray reset uses op_mode 0x0, which hotplugs unrelated PCIe devices (tt-smi ≥6.4.1 uses 0x3)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
tenstorrent/tt-flash#120 ·