MCPcopy Create free account
hub / github.com/aeroxy/chrome-devtools-cli / command_name

Method command_name

src/lib.rs:404–434  ·  view source on GitHub ↗

Get the name of the subcommand as a static string for telemetry logging.

(&self)

Source from the content-addressed store, hash-verified

402
403 /// Get the name of the subcommand as a static string for telemetry logging.
404 fn command_name(&self) -> &'static str {
405 match &self.command {
406 Commands::ListPages => "list-pages",
407 Commands::Navigate { .. } => "navigate",
408 Commands::NewPage { .. } => "new-page",
409 Commands::ClosePage { .. } => "close-page",
410 Commands::SelectPage { .. } => "select-page",
411 Commands::Screenshot { .. } => "screenshot",
412 Commands::Evaluate { .. } => "evaluate",
413 Commands::Click { .. } => "click",
414 Commands::ClickAt { .. } => "click-at",
415 Commands::Fill { .. } => "fill",
416 Commands::TypeText { .. } => "type-text",
417 Commands::PressKey { .. } => "press-key",
418 Commands::Hover { .. } => "hover",
419 Commands::Snapshot { .. } => "snapshot",
420 Commands::ReadPage { .. } => "read-page",
421 Commands::TakeHeapSnapshot { .. } => "take-heapsnapshot",
422 Commands::InspectHeapSnapshotNode { .. } => "inspect-heapsnapshot-node",
423 Commands::Emulate { .. } => "emulate",
424 Commands::WaitFor { .. } => "wait-for",
425 Commands::List3pTools => "list-3p-tools",
426 Commands::Execute3pTool { .. } => "execute-3p-tool",
427 Commands::Console { .. } => "console",
428 Commands::Network { .. } => "network",
429 Commands::SwLogs { .. } => "sw-logs",
430 Commands::RunScript { .. } => "run-script",
431 Commands::Adapter { .. } => "adapter",
432 Commands::KillDaemon => "kill-daemon",
433 }
434 }
435}
436
437/// Build a DaemonRequest from parsed CLI args.

Callers 1

run_direct_fallbackFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected