1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const Colour_1 = require("../lib/Colour");
|
4 | function addName(opts) {
|
5 | opts.name = {
|
6 | describe: 'Your name',
|
7 | type: 'string'
|
8 | };
|
9 | }
|
10 | exports.addName = addName;
|
11 | function addEmail(opts) {
|
12 | opts.email = {
|
13 | describe: 'Your email',
|
14 | type: 'string'
|
15 | };
|
16 | }
|
17 | exports.addEmail = addEmail;
|
18 | function addGhUser(opts) {
|
19 | opts['gh-user'] = {
|
20 | alias: 'ghu',
|
21 | describe: 'Your GitHub username',
|
22 | type: 'string'
|
23 | };
|
24 | }
|
25 | exports.addGhUser = addGhUser;
|
26 | function addGhRepo(opts) {
|
27 | opts['gh-repo'] = {
|
28 | alias: 'ghr',
|
29 | describe: 'Your GitHub repository',
|
30 | type: 'string'
|
31 | };
|
32 | }
|
33 | exports.addGhRepo = addGhRepo;
|
34 | function addGhToken(opts) {
|
35 | opts['gh-token'] = {
|
36 | describe: `Your ${Colour_1.Colour.bold('global')} GitHub token used only by this CLI tool.`,
|
37 | type: 'string'
|
38 | };
|
39 | }
|
40 | exports.addGhToken = addGhToken;
|
41 | function addUserWebsite(opts) {
|
42 | opts['user-website'] = {
|
43 | alias: 'uwebsite',
|
44 | describe: 'Your website',
|
45 | type: 'string'
|
46 | };
|
47 | }
|
48 | exports.addUserWebsite = addUserWebsite;
|