GetRepositoryResourceContent defines the resource template for getting repository content.
(t translations.TranslationHelperFunc)
| 32 | |
| 33 | // GetRepositoryResourceContent defines the resource template for getting repository content. |
| 34 | func GetRepositoryResourceContent(t translations.TranslationHelperFunc) inventory.ServerResourceTemplate { |
| 35 | return inventory.NewServerResourceTemplate( |
| 36 | ToolsetMetadataRepos, |
| 37 | mcp.ResourceTemplate{ |
| 38 | Name: "repository_content", |
| 39 | URITemplate: repositoryResourceContentURITemplate.Raw(), |
| 40 | Description: t("RESOURCE_REPOSITORY_CONTENT_DESCRIPTION", "Repository Content"), |
| 41 | Icons: octicons.Icons("repo"), |
| 42 | }, |
| 43 | repositoryResourceContentsHandlerFunc(repositoryResourceContentURITemplate), |
| 44 | ) |
| 45 | } |
| 46 | |
| 47 | // GetRepositoryResourceBranchContent defines the resource template for getting repository content for a branch. |
| 48 | func GetRepositoryResourceBranchContent(t translations.TranslationHelperFunc) inventory.ServerResourceTemplate { |
no test coverage detected