MCPcopy Create free account
hub / github.com/ccusage/ccusage / blocks_command_tokens

Function blocks_command_tokens

rust/crates/ccusage-cli/src/parser.rs:683–692  ·  view source on GitHub ↗
(args: &[String])

Source from the content-addressed store, hash-verified

681}
682
683fn blocks_command_tokens(args: &[String]) -> bool {
684 let tokens = command_tokens(args);
685 matches!(
686 tokens.as_slice(),
687 [command, ..] if command == "blocks"
688 ) || matches!(
689 tokens.as_slice(),
690 [agent, command, ..] if agent == "claude" && command == "blocks"
691 )
692}
693
694fn unsupported_agent_report_error(args: &[String]) -> Option<String> {
695 let tokens = command_tokens(args);

Callers 1

Calls 1

command_tokensFunction · 0.70

Tested by

no test coverage detected