gitリポジトリのurlを貼り付けるだけでアプリケーションのビルドを実行するアプリ。 macOS用
Revision | 671c493cec7ea75da1100a90e125581627ac5caf (tree) |
---|---|
Zeit | 2018-05-25 22:38:05 |
Autor | masakih <masakih@user...> |
Commiter | masakih |
書式を合わせた
@@ -48,7 +48,6 @@ func createDirectory(_ url: URL) -> Bool { | ||
48 | 48 | } catch { |
49 | 49 | |
50 | 50 | return false |
51 | - | |
52 | 51 | } |
53 | 52 | } |
54 | 53 |
@@ -39,13 +39,11 @@ struct BuildInfo { | ||
39 | 39 | |
40 | 40 | init?(projectURL: URL) { |
41 | 41 | |
42 | - guard let projectFileURL = find(in: projectURL) | |
43 | - else { return nil } | |
42 | + guard let projectFileURL = find(in: projectURL) else { return nil } | |
44 | 43 | |
45 | 44 | self.projectURL = projectURL |
46 | 45 | |
47 | - guard let type = ProjectType(projectFileURL: projectFileURL) | |
48 | - else { return nil } | |
46 | + guard let type = ProjectType(projectFileURL: projectFileURL) else { return nil } | |
49 | 47 | |
50 | 48 | switch type { |
51 | 49 |
@@ -25,7 +25,6 @@ private func nameWithDate(_ name: String) -> String { | ||
25 | 25 | formatter.dateFormat = "yyyy-MM-dd-HH-mm-ss-A" |
26 | 26 | |
27 | 27 | return formatter.string(from: Date()) + "-" + name |
28 | - | |
29 | 28 | } |
30 | 29 | |
31 | 30 | final class LogStocker { |
@@ -36,8 +35,7 @@ final class LogStocker { | ||
36 | 35 | |
37 | 36 | do { |
38 | 37 | |
39 | - let datename = nameWithDate(name) | |
40 | - guard let url = fileURL(for: datename) else { return nil } | |
38 | + guard let url = fileURL(for: nameWithDate(name)) else { return nil } | |
41 | 39 | |
42 | 40 | try Data().write(to: url) |
43 | 41 |
@@ -30,6 +30,7 @@ func findFile(pattern: String, in url: URL, depth: Int = 1) -> URL? { | ||
30 | 30 | guard let contents = try? FileManager.default.contentsOfDirectory(at: url, |
31 | 31 | includingPropertiesForKeys: [.isDirectoryKey]) |
32 | 32 | else { |
33 | + | |
33 | 34 | return nil |
34 | 35 | } |
35 | 36 |
@@ -13,6 +13,7 @@ extension String { | ||
13 | 13 | func match(_ pattern: String, options: NSRegularExpression.Options = []) -> Bool { |
14 | 14 | |
15 | 15 | guard let regex = try? NSRegularExpression(pattern: pattern, options: options) else { |
16 | + | |
16 | 17 | return false |
17 | 18 | } |
18 | 19 |