You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- attach now errors if no positional target / --cdp / --extension is
supplied; the implicit fallback through PLAYWRIGHT_CLI_SESSION /
--config is gone.
- list output drops the per-server status line; serverRegistry.list()
already filters to connectable descriptors, so dashboard and
sessionSidebar drop their redundant canConnect filters too.
- Attach helper text suggests the short --s= form.
@@ -112,6 +113,11 @@ export class TextOutput implements Output {
112
113
returnprocess.exit(1);
113
114
}
114
115
116
+
errorAttachNoTarget(): never{
117
+
console.error(`Error: no target specified for attach command; use one of [name], --cdp, --endpoint, or --extension to specify the target to attach to.`);
118
+
returnprocess.exit(1);
119
+
}
120
+
115
121
list({ all, browsers, servers, channelSessions }: ListData): void{
console.log(`### Browser \`${session}\` opened with pid ${pid}.`);
210
217
}
@@ -282,6 +289,11 @@ export class JsonOutput implements Output {
282
289
returnprocess.exit(1);
283
290
}
284
291
292
+
errorAttachNoTarget(): never{
293
+
this._emit({isError: true,error: `no target specified for attach command; use one of [name], --cdp, --endpoint, or --extension to specify the target to attach to.`});
294
+
returnprocess.exit(1);
295
+
}
296
+
285
297
list({ all, browsers, servers, channelSessions }: ListData): void{
0 commit comments