relay back to normal
parent
07a4367a99
commit
cafdb55183
|
|
@ -4,12 +4,14 @@ const chalk = require('chalk').default;
|
||||||
const gradient = require('gradient-string');
|
const gradient = require('gradient-string');
|
||||||
|
|
||||||
|
|
||||||
module.exports.title = function(component) {
|
module.exports.title = function(component, cls = true) {
|
||||||
|
|
||||||
|
if(cls) {
|
||||||
process.stdout.cursorTo(0, 0);
|
process.stdout.cursorTo(0, 0);
|
||||||
process.stdout.clearScreenDown();
|
process.stdout.clearScreenDown();
|
||||||
const bigDisplay = process.stdout.getWindowSize()[1] > 45
|
const bigDisplay = process.stdout.getWindowSize()[1] > 45
|
||||||
if(bigDisplay) console.log();
|
if(bigDisplay) console.log();
|
||||||
|
}
|
||||||
|
|
||||||
// centerString(`
|
// centerString(`
|
||||||
// /\\ .-. .-. .-.-.;;;;;;'
|
// /\\ .-. .-. .-.-.;;;;;;'
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
const { title } = require('../lib/title');
|
const { title } = require('../lib/title');
|
||||||
const net = require('net');
|
const net = require('net');
|
||||||
const log = require('signale');
|
const log = require('signale').scope('relay');
|
||||||
const { config } = require('./../package.json');
|
const { config } = require('./../package.json');
|
||||||
|
|
||||||
// title('relay');
|
title('relay', false);
|
||||||
|
|
||||||
// let connection = null;
|
// let connection = null;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
(() => {
|
(() => {
|
||||||
const log = require('signale');
|
const log = require('signale').scope('service');
|
||||||
const { execSync, spawn } = require('child_process');
|
const { execSync, spawn } = require('child_process');
|
||||||
const branch = 'master';
|
const branch = 'master';
|
||||||
let proc;
|
let proc;
|
||||||
|
|
|
||||||
Reference in New Issue