feat: introduce a background daemon service for persistent operation and inter-process communication.
This commit is contained in:
@@ -23,6 +23,11 @@ public class Program
|
||||
toggleCmd.SetHandler(ToggleCommand.ExecuteAsync, pipeOption, copyOption, verboseOption);
|
||||
rootCommand.AddCommand(toggleCmd);
|
||||
|
||||
// Daemon Command
|
||||
var daemonCmd = new Command("daemon", "Starts the background background service");
|
||||
daemonCmd.SetHandler(Toak.Core.DaemonService.StartAsync, verboseOption);
|
||||
rootCommand.AddCommand(daemonCmd);
|
||||
|
||||
// Discard Command
|
||||
var discardCmd = new Command("discard", "Abort current recording without transcribing");
|
||||
discardCmd.AddOption(pipeOption);
|
||||
|
||||
Reference in New Issue
Block a user