UNPKG

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