Skip to content

Commit 4c0bc8d

Browse files
committed
fablo splash
Signed-off-by: OsamaRab3 <osrab3@gmail.com>
1 parent 8cfa0b3 commit 4c0bc8d

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

src/commands/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {run} from '@oclif/core'

src/fablolog.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
export function printSplash() {
2+
const darkGray = '\x1b[90m';
3+
const end = '\x1b[0m';
4+
console.log("");
5+
const monthDay = new Date().getMonth() * 100 + new Date().getDate();
6+
if (monthDay > 1215) {
7+
console.log("┌────── * ┌─────. ╷ .────.");
8+
console.log("│ _/_\\_ │ │ │ ╱ ╲ ");
9+
console.log("├───── _/___\\_ ├─────: │ │ │");
10+
console.log("│ _/_____\\_ │ │ │ ╲ ╱ ");
11+
console.log(`╵ |_| └─────' └────── '────' v${process.env.FABLO_VERSION || ''}`.padEnd(80));
12+
} else {
13+
console.log("┌────── .─. ┌─────. ╷ .────.");
14+
console.log("│ / \\ │ │ │ ╱ ╲ ");
15+
console.log("├───── / \\ ├─────: │ │ │");
16+
console.log("│ /───────\\ │ │ │ ╲ ╱ ");
17+
console.log(`╵ / \\ └─────' └────── '────' v${process.env.FABLO_VERSION || ''}`.padEnd(80));
18+
}
19+
console.log(`${darkGray}┌┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┐`);
20+
console.log("│ https://fablo.io | created at SoftwareMill | backed by Hyperledger Foundation│");
21+
console.log(`└┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┘${end}`);
22+
}
23+
24+
25+

0 commit comments

Comments
 (0)