This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
522af34
commit 2a34f93
Showing
5 changed files
with
41 additions
and
10 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
29 changes: 29 additions & 0 deletions
29
...ucture/Probel.Lanceur.Infrastructure/ServicesImpl/ArgumentHandlers/ClipboardRawHandler.cs
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,29 @@ | ||
using Probel.Lanceur.Core.Services; | ||
|
||
namespace Probel.Lanceur.Infrastructure.ServicesImpl.ArgumentHandlers | ||
{ | ||
public class ClipboardRawHandler : ArgumentHandler | ||
{ | ||
#region Fields | ||
|
||
private readonly IClipboardService _clipboard; | ||
|
||
#endregion Fields | ||
|
||
#region Constructors | ||
|
||
public ClipboardRawHandler(IClipboardService clipboard) : base(Wildcards.RawClipboard) => _clipboard = clipboard; | ||
|
||
#endregion Constructors | ||
|
||
#region Methods | ||
|
||
protected override string DoHandle(string cmdline, string parameters) | ||
{ | ||
var resolved = cmdline.ToLower().Replace(Wildcard, _clipboard.GetText()); | ||
return resolved; | ||
} | ||
|
||
#endregion Methods | ||
} | ||
} |
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