main
js 25 lines 561 Bytes
Raw
1 #!/usr/bin/env node
2
3 'use strict';
4
5 const clear = require('clear');
6 const {join, relative} = require('path');
7 const theme = require('../theme');
8
9 module.exports = async ({build}) => {
10 const commandPath = relative(
11 process.env.PWD,
12 join(__dirname, '../download-experimental-build.js')
13 );
14
15 clear();
16
17 const message = theme`
18 {caution An experimental build has been downloaded!}
19
20 You can download this build again by running:
21 {path ${commandPath}} --build={build ${build}}
22 `;
23
24 console.log(message.replace(/\n +/g, '\n').trim());
25 };