GetToolScopeMap returns the global tool scope map. Returns an empty map if SetToolScopeMapFromInventory hasn't been called yet.
()
| 32 | // GetToolScopeMap returns the global tool scope map. |
| 33 | // Returns an empty map if SetToolScopeMapFromInventory hasn't been called yet. |
| 34 | func GetToolScopeMap() (ToolScopeMap, error) { |
| 35 | if globalToolScopeMap == nil { |
| 36 | return make(ToolScopeMap), nil |
| 37 | } |
| 38 | return globalToolScopeMap, nil |
| 39 | } |
| 40 | |
| 41 | // GetToolScopeInfo returns scope information for a specific tool from the global scope map. |
| 42 | func GetToolScopeInfo(toolName string) (*ToolScopeInfo, error) { |
no outgoing calls