MCPcopy Create free account
hub / github.com/appium/appium / init

Function init

packages/docutils/lib/init.ts:181–213  ·  view source on GitHub ↗
({
  python,
  packageJson: packageJsonPath,
  overwrite,
  mkdocs,
  mkdocsYml: mkdocsYmlPath,
  siteName,
  repoName,
  repoUrl,
  copyright,
  dryRun,
  cwd,
  pythonPath,
  upgrade,
}: InitOptions = {})

Source from the content-addressed store, hash-verified

179 * console output which would need mitigation.
180 */
181export async function init({
182 python,
183 packageJson: packageJsonPath,
184 overwrite,
185 mkdocs,
186 mkdocsYml: mkdocsYmlPath,
187 siteName,
188 repoName,
189 repoUrl,
190 copyright,
191 dryRun,
192 cwd,
193 pythonPath,
194 upgrade,
195}: InitOptions = {}): Promise<void> {
196 if (python) {
197 await initPython({pythonPath, dryRun, upgrade});
198 }
199
200 if (mkdocs && !upgrade) {
201 await initMkDocs({
202 dest: mkdocsYmlPath,
203 cwd,
204 siteName,
205 repoUrl,
206 repoName,
207 copyright,
208 packageJson: packageJsonPath,
209 overwrite,
210 dryRun,
211 });
212 }
213}

Callers 2

handlerFunction · 0.50
build.e2e.spec.tsFile · 0.50

Calls 1

initPythonFunction · 0.85

Tested by

no test coverage detected