例文を組み込んだAlfred Workflowを作りました: Alfred Git Commit Message Example
以下転載:
以下転載:
Author: Chris Lattner
| #! /usr/bin/perl | |
| # | |
| # Written in 2017 by Kazuho Oku | |
| # | |
| # To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. | |
| # You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. | |
| # | |
| use strict; | |
| use warnings; |
| public protocol CodableByInnerJSONType : Codable { | |
| associatedtype JSON: Codable | |
| init(fromInnerJSON json: JSON) | |
| func encodeToInnerJSON() -> JSON | |
| } | |
| extension CodableByInnerJSONType { | |
| public init(from decoder: Decoder) throws { | |
| let json = try JSON(from: decoder) |