Add conformances to support Swift ArgumentParser?
まだ誰も着手していません。
評価
調査の方向性
Start with the issue's Path and ExpressibleByArgument example, then review Swift ArgumentParser's conformance requirements. Confirm which Path conformances are appropriate and define done as allowing a Path argument to be provided directly without a clunky extension.
索引モデルが issue の本文から書いたものです。
説明
The Swift ArgumentParser library makes it easy to parse command-line arguments. I feel like it should be possible to directly provide a Path argument:
struct
Calculate : ParsableCommand
{
@Option(name: .shortAndLong, help: "Path to input word list, one per line")
var inputWordList: Path = Path.cwd/"wordlist.txt"
}
extension
Path : ExpressibleByArgument
{
public init?(argument: String) {
if let p = Path(argument)
{
self = p
}
else
{
return nil
}
}
}
but the ExpressibleByArgument conformance seems clunky to me.
- 主要言語
- Swift
- スター
- 959
- フォーク
- 40
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mxcl/Path.swift のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
mxcl/Path.swift#93 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
mxcl/Path.swift#66 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
mxcl/Path.swift#17 · コメント 1 件 ·
mxcl/Path.swift の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
OneBusAway/onebusaway-ios#1518 ·
メンテナーはふだん 2 日以内に返信
-
area: agents
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
manaflow-ai/cmux#19972 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
VerificationCodeInputField: iPad Return key clears/hides OTP fields対応中かも @amansingh1207 が今日担当しました。 オープンneeds attention
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
firebase/FirebaseUI-iOS#1407 ·
メンテナーはふだん 5 日以内に返信
-
component: swift renderer P2 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
a2ui-project/a2ui#3146 ·
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
521xueweihan/HelloGitHub#3940 ·