(ctx context.Context, s ssh.Session, cmd []string)
| 11 | ) |
| 12 | |
| 13 | func cmdWhoami(ctx context.Context, s ssh.Session, cmd []string) int { //nolint:interfacer |
| 14 | user := CtxUser(ctx) |
| 15 | _ = writeStringFmt(s, "logged in as %s\r\n", user.Username) |
| 16 | |
| 17 | return 0 |
| 18 | } |
| 19 | |
| 20 | func cmdNotFound(ctx context.Context, s ssh.Session, cmd []string) int { |
| 21 | _ = writeStringFmt(s.Stderr(), "command %q not found\r\n", cmd[0]) |
no test coverage detected