chore(cli): formatting + version consistency
This commit is contained in:
parent
fdd556df83
commit
970061ff9d
15 changed files with 83 additions and 34 deletions
|
@ -11,6 +11,7 @@ export const updateReadingProgress = async () => {
|
|||
|
||||
if (!readingBooks.length) {
|
||||
console.log('📖 No books currently marked as "started".');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -33,6 +34,7 @@ export const updateReadingProgress = async () => {
|
|||
message: '📕 New progress percentage (0–100):',
|
||||
validate: input => {
|
||||
const num = Number(input);
|
||||
|
||||
return !isNaN(num) && num >= 0 && num <= 100 || 'Enter a number from 0 to 100';
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue