adds Clean Copy Support
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import Foundation
|
||||
|
||||
/// The clean-copy channel: the agent writes text into one file in the project root, and Helder shows it to copy.
|
||||
public enum CleanCopy {
|
||||
public static let fileName = ".clean-copy"
|
||||
|
||||
/// True when `text` should open the popup: it holds more than whitespace and differs from the last text seen.
|
||||
public static func isNew(_ text: String, lastSeen: String?) -> Bool {
|
||||
!text.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty && text != lastSeen
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user