-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from Carthage/no-logging-in-carthagekit
Stop writing console messages in CarthageKit
- Loading branch information
Showing
11 changed files
with
207 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// | ||
// CarthageKitExtensions.swift | ||
// Carthage | ||
// | ||
// Created by Justin Spahr-Summers on 2014-11-18. | ||
// Copyright (c) 2014 Carthage. All rights reserved. | ||
// | ||
|
||
// This file contains extensions to CarthageKit, for use by the Carthage command | ||
// line tool. Generally, these extensions are not general enough to include in | ||
// the framework itself. | ||
|
||
import CarthageKit | ||
import Foundation | ||
import ReactiveCocoa | ||
|
||
/// Logs project events put into the sink. | ||
internal struct ProjectEventSink: SinkType { | ||
mutating func put(event: ProjectEvent) { | ||
switch event { | ||
case let .Cloning(project): | ||
println("*** Cloning \(project.name)") | ||
|
||
case let .Fetching(project): | ||
println("*** Fetching \(project.name)") | ||
|
||
case let .CheckingOut(project, revision): | ||
println("*** Checking out \(project.name) at \"\(revision)\"") | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.