1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const command_1 = require("@oclif/command");
|
4 | const simpleGit = require('simple-git');
|
5 | class Init extends command_1.Command {
|
6 | async run() {
|
7 | const { args, flags } = this.parse(Init);
|
8 | const name = flags.name || 'world';
|
9 | simpleGit().outputHandler((command, stdout, stderr) => {
|
10 | stdout.pipe(process.stdout);
|
11 | stderr.pipe(process.stderr);
|
12 | }).clone("git@gitlab.alternation.hr:open-source/servant-starter-kit.git");
|
13 | if (args.file && flags.force) {
|
14 | this.log(`you input --force and --file: ${args.file}`);
|
15 | }
|
16 | }
|
17 | }
|
18 | Init.description = 'describe the command here';
|
19 | Init.flags = {
|
20 | help: command_1.flags.help({ char: 'h' }),
|
21 |
|
22 | name: command_1.flags.string({ char: 'n', description: 'name to print' }),
|
23 |
|
24 | force: command_1.flags.boolean({ char: 'f' }),
|
25 | };
|
26 | Init.args = [{ name: 'file' }];
|
27 | exports.default = Init;
|