MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / icon

Method icon

crates/opencode-tui/src/components/permission.rs:52–69  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

50 }
51
52 pub fn icon(&self) -> &'static str {
53 match self {
54 PermissionType::ReadFile => "[R]",
55 PermissionType::WriteFile => "[W]",
56 PermissionType::Edit => "[E]",
57 PermissionType::ExecuteCommand => "[X]",
58 PermissionType::Bash => "[!]",
59 PermissionType::NetworkRequest => "[N]",
60 PermissionType::Glob => "[G]",
61 PermissionType::Grep => "[S]",
62 PermissionType::List => "[L]",
63 PermissionType::Task => "[T]",
64 PermissionType::WebFetch => "[F]",
65 PermissionType::WebSearch => "[Q]",
66 PermissionType::CodeSearch => "[C]",
67 PermissionType::ExternalDirectory => "[D]",
68 }
69 }
70}
71
72#[derive(Clone, Debug)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected