@hraza01/skyhook 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.js +18 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hraza01/skyhook",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Interactive CLI for Cloud Composer DAG deployment",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/cli.js CHANGED
@@ -13,6 +13,12 @@ const packageJson = JSON.parse(
13
13
  fs.readFileSync(path.join(__dirname, "../package.json"), "utf-8"),
14
14
  )
15
15
  const { version } = packageJson
16
+ const authorName = "@hraza01"
17
+
18
+ const gitLink = terminalLink(
19
+ chalk.dim(authorName),
20
+ `https://github.com/${authorName.replace("@", "")}/skyhook`,
21
+ )
16
22
 
17
23
  /**
18
24
  * Display version information
@@ -26,11 +32,6 @@ export function showVersionInfo() {
26
32
  * Display help information
27
33
  */
28
34
  export function showHelpInfo() {
29
- const gitLink = terminalLink(
30
- chalk.cyan.underline("@hraza01/skyhook"),
31
- "https://github.com/hraza01/skyhook",
32
- )
33
-
34
35
  console.clear()
35
36
  console.log(
36
37
  chalk.cyan.bold("\nSkyhook - Cloud Composer DAG Deployment Utility\n"),
@@ -58,7 +59,7 @@ export function showHelpInfo() {
58
59
  export function showIntro() {
59
60
  console.clear()
60
61
  console.log(
61
- chalk.cyan(
62
+ chalk.bold.cyan(
62
63
  figlet.textSync("Skyhook", {
63
64
  font: "Slant",
64
65
  horizontalLayout: "default",
@@ -66,8 +67,18 @@ export function showIntro() {
66
67
  }),
67
68
  ),
68
69
  )
70
+
71
+ const title = " Cloud Composer DAG Deployment Utility "
72
+ const titleLength = title.length + 3
73
+ const versionLength = `v${version}`.length
74
+ const authorLength = `by ${authorName}`.length
75
+ const padding = " ".repeat(
76
+ Math.max(0, titleLength - authorLength - versionLength),
77
+ )
78
+
79
+ console.log(chalk.dim.blackBright(`by ${gitLink}${padding}v${version}`))
69
80
  console.log("")
70
- intro(chalk.bgCyan.black(" Cloud Composer DAG Deployment Utility "))
81
+ intro(chalk.bgCyan.black(title))
71
82
  }
72
83
 
73
84
  /**