Skip to content

Instantly share code, notes, and snippets.

@Josh4324
Created November 24, 2020 10:47
Show Gist options
  • Save Josh4324/3383737722dc3f92cf5f632388ec908d to your computer and use it in GitHub Desktop.
Save Josh4324/3383737722dc3f92cf5f632388ec908d to your computer and use it in GitHub Desktop.
yargs.command({
command: "delete",
describe: " Remove a specific todo with the title",
builder: {
title: {
describe: "Todo title",
type: "string",
demandOption: true,
}
},
handler: function (argv) {
utils.deleteTodo(argv.title);
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment