MCPcopy Create free account
hub / github.com/AI45Lab/Code / as_tool_kind

Method as_tool_kind

core/src/workspace/mod.rs:134–141  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

132
133impl WorkspaceFileType {
134 pub fn as_tool_kind(self) -> &'static str {
135 match self {
136 Self::File => "file",
137 Self::Directory => "dir",
138 Self::Symlink => "link",
139 Self::Unknown => "unknown",
140 }
141 }
142}
143
144/// Directory entry returned by a workspace backend.

Callers 1

executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected