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