Skip to content

Instantly share code, notes, and snippets.

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