MCPcopy Index your code
hub / github.com/cloudgraphdev/cli / getServeCommand

Function getServeCommand

test/helpers/index.ts:81–90  ·  view source on GitHub ↗
(
  argv: any = ['']
)

Source from the content-addressed store, hash-verified

79}
80
81export const getServeCommand = async (
82 argv: any = ['']
83): Promise<ServeCommandClass> => {
84 const { version } = await setConfigCommand()
85 const serveCommand = new ServeCommandClass(argv, { root })
86 serveCommand.config.configDir = configDir
87 serveCommand.config.dataDir = dataDir
88 serveCommand.config.version = version
89 return serveCommand
90}
91
92export const removeTestDirs = (): void => {
93 rmdirSync(rootTestConfigDir, { recursive: true })

Callers 1

serve.test.tsFile · 0.90

Calls 1

setConfigCommandFunction · 0.85

Tested by

no test coverage detected