-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.js
More file actions
22 lines (20 loc) · 722 Bytes
/
Copy pathui.js
File metadata and controls
22 lines (20 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import chalk from "chalk";
import figlet from "figlet";
export function displayWelcome() {
console.log(
chalk.magenta.bold(
figlet.textSync("Time Capsule", { font: "Slant" })
)
);
console.log(chalk.cyan("Preserve your memories for the future!"));
}
export function displayCapsule(capsule) {
const status = capsule.isUnlockable()
? chalk.green("Unlockable")
: chalk.red("Locked");
console.log(chalk.green("┌─ Capsule Status ─┐"));
console.log(chalk.bold(`ID: ${capsule.id}`));
console.log(`Status: ${status}`);
console.log(`Unlock Date: ${capsule.unlockDate}`);
console.log(chalk.green("└─────────────────┘"));
}