UNPKG

gaunt-sloth-assistant

Version:

[![Tests and Lint](https://github.com/Galvanized-Pukeko/gaunt-sloth-assistant/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/Galvanized-Pukeko/gaunt-sloth-assistant/actions/workflows/unit-tests.yml) [![Integration Tests](https://github.co

16 lines 622 B
import { availableDefaultConfigs, createProjectConfig } from '#src/config.js'; import { Argument } from 'commander'; /** * Adds the init command to the program * @param program - The commander program */ export function initCommand(program) { program .command('init') .description('Initialize the Gaunt Sloth Assistant in your project. This will write necessary config files.') .addArgument(new Argument('<type>', 'Config type').choices(availableDefaultConfigs)) .action(async (config) => { await createProjectConfig(config); }); } //# sourceMappingURL=initCommand.js.map