MCPcopy Index your code
hub / github.com/anomalyco/opencode / withSlash

Function withSlash

packages/opencode/src/util/repository.ts:95–97  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

93}
94
95function withSlash(input: string) {
96 return input.endsWith("/") ? input : `${input}/`
97}
98
99function githubRemote(pathname: string) {
100 const base = process.env.OPENCODE_REPO_CLONE_GITHUB_BASE_URL

Callers 1

githubRemoteFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected