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

Function toCodeArgs

src/node/cli.ts:916–925  ·  view source on GitHub ↗
(args: DefaultedArgs)

Source from the content-addressed store, hash-verified

914 * Does not add any extra arguments.
915 */
916export const toCodeArgs = async (args: DefaultedArgs): Promise<CodeArgs> => {
917 return {
918 ...args,
919 /** Type casting. */
920 help: !!args.help,
921 version: !!args.version,
922 port: args.port?.toString(),
923 log: args.log ? [args.log] : undefined,
924 }
925}

Callers 3

cli.test.tsFile · 0.90
runCodeCliFunction · 0.90
loadVSCodeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected