joplin/CliClient/app/command-undone.js

27 lines
593 B
JavaScript
Raw Normal View History

2017-08-21 20:46:31 +00: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() {
return _('Marks a todo as non-completed.');
}
async action(args) {
2017-09-24 14:48:23 +00:00
await CommandDone.handleAction(args, false);
2017-08-21 20:46:31 +00:00
}
}
module.exports = Command;