2017-08-21 22:46:31 +02:00
|
|
|
import { BaseCommand } from './base-command.js';
|
|
|
|
import { app } from './app.js';
|
|
|
|
import { _ } from 'lib/locale.js';
|
|
|
|
import { BaseModel } from 'lib/base-model.js';
|
|
|
|
import { Folder } from 'lib/models/folder.js';
|
|
|
|
import { Note } from 'lib/models/note.js';
|
|
|
|
import { time } from 'lib/time-utils.js';
|
|
|
|
|
|
|
|
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 22:46:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
async action(args) {
|
2017-09-24 15:48:23 +01:00
|
|
|
await CommandDone.handleAction(args, false);
|
2017-08-21 22:46:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = Command;
|