-
Notifications
You must be signed in to change notification settings - Fork 98
/
Copy pathcli.list.js
138 lines (134 loc) · 4.85 KB
/
cli.list.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
const chalk = require('chalk');
module.exports = (currentConfiguration) => {
console.log(`
CURRENT CONFIGURATION
Project Name: ${
currentConfiguration.PROJECT_NAME
? chalk.green(currentConfiguration.PROJECT_NAME)
: chalk.red('not set')
}
Homepage Name: ${
currentConfiguration.HOMEPAGE_NAME
? chalk.green(currentConfiguration.HOMEPAGE_NAME)
: chalk.red('not set')
}
Root Folder: ${
currentConfiguration.ROOT_FOLDER
? chalk.green(currentConfiguration.ROOT_FOLDER)
: chalk.red('not set')
}
Destination Folder: ${
currentConfiguration.DIST_FOLDER
? chalk.green(currentConfiguration.DIST_FOLDER)
: chalk.red('not set')
}
Generate multiple markdown files: ${
currentConfiguration.GENERATE_MD !== undefined
? chalk.green(currentConfiguration.GENERATE_MD)
: chalk.red('not set')
}
${
currentConfiguration.generateMD
? `include basic navigation: ${chalk.green(currentConfiguration.INCLUDE_NAVIGATION || false)}
include table of contents: ${chalk.green(currentConfiguration.INCLUDE_TABLE_OF_CONTENTS || false)}`
: ''
}
Generate a single complete markdown file: ${
currentConfiguration.GENERATE_COMPLETE_MD_FILE !== undefined
? chalk.green(currentConfiguration.GENERATE_COMPLETE_MD_FILE)
: chalk.red('not set')
}
Generate multiple pdf files: ${
currentConfiguration.GENERATE_PDF !== undefined
? chalk.green(currentConfiguration.GENERATE_PDF)
: chalk.red('not set')
}
Generate a single complete pdf file: ${
currentConfiguration.GENERATE_COMPLETE_PDF_FILE !== undefined
? chalk.green(currentConfiguration.GENERATE_COMPLETE_PDF_FILE)
: chalk.red('not set')
}
${
currentConfiguration.generatePDF || currentConfiguration.GENERATE_COMPLETE_PDF_FILE
? `Custom pdf css: ${
currentConfiguration.PDF_CSS
? chalk.green(currentConfiguration.PDF_CSS)
: chalk.red('not set')
}`
: ''
}
Generate website: ${
currentConfiguration.GENERATE_WEBSITE !== undefined
? chalk.green(currentConfiguration.GENERATE_WEBSITE)
: chalk.red('not set')
}
${
currentConfiguration.GENERATE_WEBSITE
? `Website docsify theme: ${
currentConfiguration.WEB_THEME
? chalk.green(currentConfiguration.WEB_THEME)
: chalk.red('not set')
}
Path to a specific Docsify template: ${
currentConfiguration.DOCSIFY_TEMPLATE
? chalk.green(currentConfiguration.DOCSIFY_TEMPLATE)
: chalk.red('not set')
}`
: ''
}
Repository Url: ${
currentConfiguration.REPO_NAME ? chalk.green(currentConfiguration.REPO_NAME) : chalk.red('not set')
}
Include breadcrumbs: ${
currentConfiguration.INCLUDE_BREADCRUMBS !== undefined
? chalk.green(currentConfiguration.INCLUDE_BREADCRUMBS)
: chalk.red('not set')
}
PlantUML version: ${
currentConfiguration.PLANTUML_VERSION !== undefined
? chalk.green(currentConfiguration.PLANTUML_VERSION)
: chalk.red('not set')
}
Embed SVG diagram : ${
currentConfiguration.EMBED_DIAGRAM !== undefined
? chalk.green(currentConfiguration.EMBED_DIAGRAM)
: chalk.red('not set')
}
Generate diagram images locally: ${
currentConfiguration.GENERATE_LOCAL_IMAGES !== undefined
? chalk.green(currentConfiguration.GENERATE_LOCAL_IMAGES)
: chalk.red('not set')
}
Replace diagrams with a link: ${
currentConfiguration.INCLUDE_LINK_TO_DIAGRAM !== undefined
? chalk.green(currentConfiguration.INCLUDE_LINK_TO_DIAGRAM)
: chalk.red('not set')
}
Place diagrams before text: ${
currentConfiguration.DIAGRAMS_ON_TOP !== undefined
? chalk.green(currentConfiguration.DIAGRAMS_ON_TOP)
: chalk.red('not set')
}
PlantUML server url: ${
currentConfiguration.PLANTUML_SERVER_URL !== undefined
? chalk.green(currentConfiguration.PLANTUML_SERVER_URL)
: chalk.red('not set')
}
Diagram format: ${
currentConfiguration.DIAGRAM_FORMAT !== undefined
? chalk.green(currentConfiguration.DIAGRAM_FORMAT)
: chalk.red('not set')
}
Charset: ${
currentConfiguration.CHARSET !== undefined
? chalk.green(currentConfiguration.CHARSET)
: chalk.red('not set')
}
Exclude other files: ${
currentConfiguration.EXCLUDE_OTHER_FILES !== undefined
? chalk.green(currentConfiguration.EXCLUDE_OTHER_FILES)
: chalk.red('not set')
}
`);
return;
};