2017-11-03 00:09:34 +00:00
|
|
|
const { BaseCommand } = require('./base-command.js');
|
2020-11-07 15:59:37 +00:00
|
|
|
const { _ } = require('@joplin/lib/locale');
|
2017-08-21 20:46:31 +00:00
|
|
|
|
|
|
|
const CommandDone = require('./command-done.js');
|
|
|
|
|
|
|
|
class Command extends BaseCommand {
|
|
|
|
usage() {
|
|
|
|
return 'undone <note>';
|
|
|
|
}
|
|
|
|
|
|
|
|
description() {
|
2017-10-30 00:37:34 +00:00
|
|
|
return _('Marks a to-do as non-completed.');
|
2017-08-21 20:46:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
async action(args) {
|
2017-12-26 10:38:53 +00:00
|
|
|
await CommandDone.handleAction(this, args, false);
|
2017-08-21 20:46:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-30 07:35:42 +00:00
|
|
|
module.exports = Command;
|