Skip to content

Commit a1529f0

Browse files
committed
typo & added chalk color
1 parent 6f79c1d commit a1529f0

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

dist/hours/submitHours.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/hours/submitHours.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
},
3030
"preferGlobal": true,
3131
"dependencies": {
32+
"chalk": "^4.1.1",
3233
"compare-versions": "^3.6.0",
3334
"configstore": "^3.1.5",
3435
"fetch-cookie": "^0.11.0",

src/hours/submitHours.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { fetchCookieJar } from '../cookieJar'
22
import { HoursData } from '../types'
3+
import chalk from 'chalk'
34

45
async function submitHours(data: HoursData) {
56
const { id, secure, projectCode, project, hours, description } = data
@@ -24,7 +25,11 @@ async function submitHours(data: HoursData) {
2425
)
2526
// Crappy API, seems to always return 200 :(
2627
if (updateResponse.ok)
27-
console.log(`\nYeah 🚀 Submitted ${hours} hours today for ${project.name} `)
28+
console.log(
29+
`\nYeah 🚀 Submitted ${hours} hours on ${chalk.cyan(
30+
project.name
31+
)} for today `
32+
)
2833
}
2934

3035
export default submitHours

0 commit comments

Comments
 (0)