Skip to content

Commit d120cca

Browse files
waldyriousagnivade
authored andcommitted
Add ellipsis to progress messages
1 parent a7f80f0 commit d120cca

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/tldr.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ exports.clearCache = () => {
8888

8989
exports.updateCache = () => {
9090
const spinner = ora();
91-
spinner.start('Updating');
91+
spinner.start('Updating...');
9292
return cache.update()
9393
.then(() => {
9494
spinner.succeed();
@@ -101,7 +101,7 @@ exports.updateCache = () => {
101101

102102
exports.updateIndex = () => {
103103
const spinner = ora();
104-
spinner.start('Creating index');
104+
spinner.start('Creating index...');
105105
search.createIndex()
106106
.then(() => {
107107
spinner.succeed();
@@ -145,12 +145,12 @@ function printBestPage(command, options={}) {
145145
return exit();
146146
}
147147
// If not found, try to update
148-
spinner.start('Page not found. Updating cache');
148+
spinner.start('Page not found. Updating cache...');
149149
return cache.update();
150150
})
151151
.then(() => {
152152
spinner.succeed();
153-
spinner.start('Creating index');
153+
spinner.start('Creating index...');
154154
return search.createIndex();
155155
})
156156
.then(() => {
@@ -188,7 +188,7 @@ function checkStale() {
188188
cache.lastUpdated()
189189
.then((stats) => {
190190
if (stats.mtime < Date.now() - ms('30d')) {
191-
console.warn('Cache is out of date, you should run "tldr --update"');
191+
console.warn('Cache is out of date. You should run "tldr --update"');
192192
}
193193
})
194194
.catch((err) => {

0 commit comments

Comments
 (0)