How to use the @nestjs/cli/lib/runners/git.runner.GitRunner function in @nestjs/cli

To help you get started, we’ve selected a few @nestjs/cli examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github devonfw / devon4node / packages / cli / src / utils / utils.ts View on Github external
export async function initGit(appPath: string) {
  console.log(chalk.blueBright('Initializing git repository... please wait'));
  const runner = new GitRunner();
  await runner.run('init', true, join(process.cwd(), appPath));
  await addGitIgnore(join(process.cwd(), appPath));
  console.log(chalk.greenBright('Git initialization ends successfuly'));
}

@nestjs/cli

Nest - modern, fast, powerful node.js web framework (@cli)

MIT
Latest version published 13 days ago

Package Health Score

95 / 100
Full package analysis

Popular @nestjs/cli functions

Similar packages