MCPcopy Index your code
hub / github.com/belak/gitdir / cmdNotFound

Function cmdNotFound

ssh_commands.go:20–23  ·  view source on GitHub ↗
(ctx context.Context, s ssh.Session, cmd []string)

Source from the content-addressed store, hash-verified

18}
19
20func cmdNotFound(ctx context.Context, s ssh.Session, cmd []string) int {
21 _ = writeStringFmt(s.Stderr(), "command %q not found\r\n", cmd[0])
22 return 1
23}
24
25func (serv *Server) cmdGitReceivePack(ctx context.Context, s ssh.Session, cmd []string) int {
26 return serv.cmdRepoAction(ctx, s, cmd, AccessLevelWrite)

Callers 1

handleSessionMethod · 0.85

Calls 1

writeStringFmtFunction · 0.85

Tested by

no test coverage detected