Skip to content

Commit 5b76993

Browse files
committed
Slightly better verbose output
1 parent 4cd52f1 commit 5b76993

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

github-todotxt.js

+10-6
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ const main = async function (argv) {
121121
auth: token
122122
})
123123

124+
note(`Getting issues from Github...`)
124125
const issues = await github.paginate('GET /issues')
125-
const todos = await getTodos(filename, key)
126+
note(`Done. (${issues.length})\n`)
126127

127-
if (!quiet) {
128-
note(`${todos.length} lines in ${filename}\n`)
129-
note(`${issues.length} issues on Github\n`)
130-
}
128+
note(`Getting todos from ${filename}...`)
129+
const todos = await getTodos(filename, key)
130+
note(`Done. (${todos.length})\n`)
131131

132132
let repo, id, todo, number
133133

@@ -189,11 +189,15 @@ const main = async function (argv) {
189189

190190
const backup = `${filename}.bak`
191191

192-
note(`Backing up ${filename} to ${backup}...\n`)
192+
note(`Backing up ${filename} to ${backup}...`)
193193

194194
await rename(filename, backup)
195195

196+
note(`Done.\n`)
197+
198+
note(`Writing todos to ${filename}...`)
196199
await writeTodos(filename, todos)
200+
note(`Done.\n`)
197201
}
198202

199203
main(argv)

0 commit comments

Comments
 (0)