Implement `whereis`
まだ誰も着手していません。
評価
調査の方向性
misc-utils/whereis.1.adoc から始め、必要な動作を元の C ソースコードと比較します。clap でコマンドラインの名前パターンに対する累積的な検索制限とリセットをどのように表現できるかを調査します。whereis を -b、-m、-s の文書化された動作で実装できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Implementing https://github.com/util-linux/util-linux/blob/master/misc-utils/whereis.1.adoc
I'll am taking this up, but facing the following issue:
The search restrictions (options -b, -m and -s) are cumulative and apply to the subsequent name patterns on the command line. Any new search restriction resets the search mask. For example,
whereis -bm ls tr -m gcc
searches for "ls" and "tr" binaries and man pages, and for "gcc" man pages only.
whereis has sticky, resettable options and clap doesn't have a clear support for doing the same.
(The approach would be to use .trailing_var_arg(true) and use a simple match as in the original C source. This defeats the purpose of clap)
- 主要言語
- Rust
- スター
- 219
- フォーク
- 59
- 平均マージ
- 4時間 8分
- マージ済み PR(30日)
- 5
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
uutils/util-linux のほかの issue
-
Implement `chrt` オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
uutils/util-linux#641 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
uutils/util-linux#638 ·
-
Implement `rename` オープン
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
uutils/util-linux#629 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
uutils/util-linux#624 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 42/100
uutils/util-linux#620 · コメント 1 件 ·
uutils/util-linux の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
bug core
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
JIT-compiled number -> Decimal conversion silently overflows instead of raising DECIMAL_OVERFLOW オープンfuzz
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ClickHouse/ClickHouse#122114 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
linebender/vello_svg#90 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100