エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Carthageコードリーディング::2日目 - My Favorite Things - Coding or die.
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Carthageコードリーディング::2日目 - My Favorite Things - Coding or die.
今回は一番簡単であろう「version」コマンドを見ていく。 VersionCommand 登録 前回も触れたが、main.sw... 今回は一番簡単であろう「version」コマンドを見ていく。 VersionCommand 登録 前回も触れたが、main.swiftでCommandRegistryに各コマンドを登録している。 // main.swift let registry = CommandRegistry<CarthageError>() registry.register(VersionCommand()) 「version」コマンドは「VersionCommand」という構造体を生成して登録している。 VersionCommandの定義 実際の定義を見てみると、以下のようになっている。 public struct VersionCommand: CommandType { public let verb = "version" public let function = "Display the curre