-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.js
More file actions
26 lines (25 loc) · 807 Bytes
/
Copy pathsetup.js
File metadata and controls
26 lines (25 loc) · 807 Bytes
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
const chalk = require('chalk');
const clear = require('clear');
const CLI = require('clui');
const figlet = require('figlet');
const Spinner = CLI.Spinner;
const lib = require('./src');
const prompt = require('./src/prompt.js')
clear();
console.log(
chalk.cyan(
figlet.textSync('Cloud CMS', { horizontalLayout: 'full' })
)
);
spinner = new Spinner('Connecting to Cloud CMS');
spinner.start()
const branch = lib.Init(function(err, branch){
branch.then(function(){
spinner.stop();
console.log(chalk.green('------------------------'))
console.log(chalk.green(' Connected to Cloud CMS '));
console.log(chalk.green('------------------------'))
console.log(chalk.green(''))
prompt.ask(this);
});
})