relay back to normal

stable
Marcus 2020-11-11 22:06:45 -05:00
parent 07a4367a99
commit cafdb55183
3 changed files with 11 additions and 9 deletions

View File

@ -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) {
process.stdout.cursorTo(0, 0); if(cls) {
process.stdout.clearScreenDown(); process.stdout.cursorTo(0, 0);
const bigDisplay = process.stdout.getWindowSize()[1] > 45 process.stdout.clearScreenDown();
if(bigDisplay) console.log(); const bigDisplay = process.stdout.getWindowSize()[1] > 45
if(bigDisplay) console.log();
}
// centerString(` // centerString(`
// /\\ .-. .-. .-.-.;;;;;;' // /\\ .-. .-. .-.-.;;;;;;'

View File

@ -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;

View File

@ -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;