@cerema/cadriciel 1.4.20 β 1.4.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/global/init.js +21 -2
- package/cli/global/install.js +1 -1
- package/package.json +1 -1
package/cli/global/init.js
CHANGED
|
@@ -35,6 +35,19 @@ module.exports = (args) => {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
+
const link = (url, name) => {
|
|
39
|
+
if (!name) name = url;
|
|
40
|
+
if (url.includes('localhost')) url = 'http://' + url + '/';
|
|
41
|
+
else url = 'https://' + url + '/';
|
|
42
|
+
return (
|
|
43
|
+
'\u001b[36m\u001b]8;;' +
|
|
44
|
+
url +
|
|
45
|
+
'\u0007' +
|
|
46
|
+
name +
|
|
47
|
+
'\u001b]8;;\u0007\u001b[0m\n'
|
|
48
|
+
);
|
|
49
|
+
};
|
|
50
|
+
|
|
38
51
|
const download = async (name, cb) => {
|
|
39
52
|
const CadricielAPI = require(path.join('..', '..', 'lib', 'cadriciel'));
|
|
40
53
|
const cadriciel = new CadricielAPI();
|
|
@@ -167,7 +180,10 @@ module.exports = (args) => {
|
|
|
167
180
|
"arrΓͺte l'environnement."
|
|
168
181
|
)}
|
|
169
182
|
|
|
170
|
-
π
|
|
183
|
+
π ${link(
|
|
184
|
+
'https://studio.k8-dev.cerema.fr',
|
|
185
|
+
'studio.k8-dev.cerema.fr'
|
|
186
|
+
)}
|
|
171
187
|
|
|
172
188
|
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ`);
|
|
173
189
|
console.log(' ');
|
|
@@ -218,7 +234,10 @@ module.exports = (args) => {
|
|
|
218
234
|
"arrΓͺte l'environnement."
|
|
219
235
|
)}
|
|
220
236
|
|
|
221
|
-
π
|
|
237
|
+
π ${link(
|
|
238
|
+
'studio.k8-dev.cerema.fr',
|
|
239
|
+
'studio.k8-dev.cerema.fr'
|
|
240
|
+
)}
|
|
222
241
|
|
|
223
242
|
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ\n`
|
|
224
243
|
);
|
package/cli/global/install.js
CHANGED