Skip to content

Commit

Permalink
Make command history available
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Feb 10, 2017
1 parent 4714bc8 commit 4081884
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/listening.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const {copy} = require('copy-paste')
const ip = require('ip')
const pathType = require('path-type')
const chalk = require('chalk')
const boxen = require('boxen')

const copyToClipboard = async text => {
try {
Expand Down Expand Up @@ -46,10 +47,13 @@ module.exports = async (server, current, inUse) => {
const copied = await copyToClipboard(url)

if (copied) {
message += `${chalk.grey('Copied local address to clipboard!')}\n\n`
message += `${chalk.grey('Copied local address to clipboard!')}`
}

process.stdout.write('\x1Bc')
process.stdout.write(message)
console.log(boxen(message, {
padding: 1,
borderColor: 'green',
margin: 1
}))
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
"args": "2.3.0",
"async-to-gen": "1.3.2",
"basic-auth": "1.1.0",
"boxen": "1.0.0",
"chalk": "1.1.3",
"copy-paste": "1.3.0",
"detect-port": "1.1.0",
Expand Down

0 comments on commit 4081884

Please sign in to comment.