ritik 0.0.10 → 0.0.12
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.
- package/dist/index.js +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
2
|
import axios from 'axios';
|
|
4
3
|
import chalk from 'chalk';
|
|
5
4
|
import boxen from 'boxen';
|
|
@@ -20,7 +19,8 @@ const bannerColor = {
|
|
|
20
19
|
npx: chalk.hex("#cb3837")
|
|
21
20
|
};
|
|
22
21
|
const getBanner = (type, label, value) => {
|
|
23
|
-
|
|
22
|
+
var _a, _b, _c;
|
|
23
|
+
return (_c = (_b = (_a = bannerColor[type]) == null ? void 0 : _a.dim) == null ? void 0 : _b.bgWhite) == null ? void 0 : _c.inverse(`${label.padStart(leftPad, " ")}: ${value.padEnd(rightPad, " ")}`);
|
|
24
24
|
};
|
|
25
25
|
const startCase = (string) => {
|
|
26
26
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
@@ -86,7 +86,8 @@ const choices = [
|
|
|
86
86
|
function Prompt(profile) {
|
|
87
87
|
const actions = {
|
|
88
88
|
["email" /* EMAIL */]: () => {
|
|
89
|
-
|
|
89
|
+
var _a, _b;
|
|
90
|
+
open(`mailto:${(_a = profile == null ? void 0 : profile.personal) == null ? void 0 : _a.displayEmail}?subject=Hi%20${(_b = profile == null ? void 0 : profile.personal) == null ? void 0 : _b.displayName.split(" ")[0]}!`);
|
|
90
91
|
console.log("\nDone, Catch you in your inbox soon!\n");
|
|
91
92
|
},
|
|
92
93
|
["resume" /* RESUME */]: () => {
|