MCPcopy Index your code
hub / github.com/coder/code-server / redactArgs

Function redactArgs

src/node/cli.ts:501–508  ·  view source on GitHub ↗
(args: UserProvidedArgs)

Source from the content-addressed store, hash-verified

499 * Redact sensitive information from arguments for logging.
500 */
501export const redactArgs = (args: UserProvidedArgs): UserProvidedArgs => {
502 return {
503 ...args,
504 password: args.password ? "<redacted>" : undefined,
505 "hashed-password": args["hashed-password"] ? "<redacted>" : undefined,
506 "github-auth": args["github-auth"] ? "<redacted>" : undefined,
507 }
508}
509
510/**
511 * User-provided arguments with defaults. The distinction between user-provided

Callers 2

handshakeMethod · 0.90
parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected