@ -234,7 +243,21 @@ export default class Alias extends Now {
}
const{created,uid}=newAlias
if(created){
console.log(`${chalk.cyan('> Success!')} Alias created ${chalk.dim(`(${uid})`)}: ${chalk.bold(chalk.underline(`https://${alias}`))} now points to ${chalk.bold(`https://${depl.url}`)}${chalk.dim(`(${depl.uid})`)}`)
constpretty=`https://${alias}`
constoutput=`${chalk.cyan('> Success!')} Alias created ${chalk.dim(`(${uid})`)}: ${chalk.bold(chalk.underline(pretty))} now points to ${chalk.bold(`https://${depl.url}`)}${chalk.dim(`(${depl.uid})`)}`
if(isTTY&&clipboard){
letappend
try{
awaitcopy(pretty)
append='[copied to clipboard]'
}catch(err){
append=''
}finally{
console.log(`${output}${append}`)
}
}else{
console.log(output)
}
}else{
console.log(`${chalk.cyan('> Success!')} Alias already exists ${chalk.dim(`(${uid})`)}.`)