-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
604 additions
and
472 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,20 @@ | ||
public class CommandFactory { | ||
public static let commands: [Command.Type] = [ | ||
KeyPressCommand.self, | ||
KeyDownCommand.self, | ||
KeyUpCommand.self, | ||
StickyPauseCommand.self, | ||
PauseCommand.self, | ||
ContinuationCommand.self, | ||
NewlineCommand.self, | ||
MouseMoveCommand.self, | ||
MouseClickCommand.self, | ||
MouseDragCommand.self, | ||
MouseScrollCommand.self, | ||
DefaultCommand.self | ||
] | ||
|
||
public static func create(_ commandType: Command.Type, arguments: [String?]) -> Command { | ||
return commandType.init(arguments: arguments) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,16 @@ | ||
import Foundation | ||
|
||
public class ContinuationCommand: Command { | ||
public override class var commandType: CommandType { return .continuation } | ||
|
||
private static let _expression = try! NSRegularExpression(pattern: "\\<\\\\\\>") | ||
public override class var expression: NSRegularExpression { return _expression } | ||
|
||
public override init () { | ||
super.init() | ||
} | ||
|
||
required public init(arguments: [String?]) { | ||
super.init(arguments: arguments) | ||
} | ||
} |
11 changes: 0 additions & 11 deletions
11
Sources/SendKeysLib/Commands/ContinuationCommandMatcher.swift
This file was deleted.
Oops, something went wrong.
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,17 @@ | ||
import Foundation | ||
|
||
public class DefaultCommand: KeyPressCommand { | ||
private static let _expression = try! NSRegularExpression(pattern: ".") | ||
public override class var expression: NSRegularExpression { return _expression } | ||
|
||
public init(key: String) { | ||
super.init() | ||
|
||
self.key = key | ||
} | ||
|
||
required public init(arguments: [String?]) { | ||
super.init() | ||
self.key = arguments[0]! | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.