UNPKG

server-deploy-cli

Version:

connect server with ssh2-sftp-client, and publish local files to remote server or delete some files from the remote server or other operations you wanna do

26 lines (18 loc) 472 B
// const chalk = require("chalk") import chalk from "chalk" class Log { log = console.log info(message) { this.log(message) } high(message) { this.log(chalk.blue(message)) } success(message, variables) { this.log(chalk.green(message), ...(variables || [])) } error(message, variables) { this.log(chalk.red.bold(message), ...(variables || [])) } } export default new Log()