@@ -61,7 +61,8 @@ public extension MutagenDaemon {
61
61
}
62
62
63
63
func deleteSessions( ids: [ String ] ) async throws ( DaemonError) {
64
- // Terminating sessions does not require prompting
64
+ // Terminating sessions does not require prompting, according to the
65
+ // Mutagen CLI
65
66
let ( stream, promptID) = try await host ( allowPrompts: false )
66
67
defer { stream. cancel ( ) }
67
68
guard case . running = state else { return }
@@ -79,7 +80,9 @@ public extension MutagenDaemon {
79
80
}
80
81
81
82
func pauseSessions( ids: [ String ] ) async throws ( DaemonError) {
82
- let ( stream, promptID) = try await host ( )
83
+ // Pausing sessions does not require prompting, according to the
84
+ // Mutagen CLI
85
+ let ( stream, promptID) = try await host ( allowPrompts: false )
83
86
defer { stream. cancel ( ) }
84
87
guard case . running = state else { return }
85
88
do {
@@ -96,7 +99,9 @@ public extension MutagenDaemon {
96
99
}
97
100
98
101
func resumeSessions( ids: [ String ] ) async throws ( DaemonError) {
99
- let ( stream, promptID) = try await host ( )
102
+ // Resuming sessions does not require prompting, according to the
103
+ // Mutagen CLI
104
+ let ( stream, promptID) = try await host ( allowPrompts: false )
100
105
defer { stream. cancel ( ) }
101
106
guard case . running = state else { return }
102
107
do {
0 commit comments