From 964185b069f004271ad842ed05e00bde3225a344 Mon Sep 17 00:00:00 2001 From: Nicolas Beaussart Date: Thu, 6 Feb 2020 20:25:58 +0100 Subject: [PATCH] :pencil: add docs for commands --- src/commands/add/prettier.ts | 8 +------- src/commands/wall/index.ts | 5 ++--- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/src/commands/add/prettier.ts b/src/commands/add/prettier.ts index 5478799..f63afba 100644 --- a/src/commands/add/prettier.ts +++ b/src/commands/add/prettier.ts @@ -9,13 +9,7 @@ import { BaseAddCommand } from '../../utls/base-add-command'; plugins.set('fs', fs); export default class Prettier extends BaseAddCommand { - static description = 'describe the command here'; - - static examples = [ - `$ nbx wall -hello world from ./src/hello.ts! -`, - ]; + static description = 'add prettier to project and format it'; static flags = { ...BaseCommand.flags, diff --git a/src/commands/wall/index.ts b/src/commands/wall/index.ts index 4790372..320471a 100644 --- a/src/commands/wall/index.ts +++ b/src/commands/wall/index.ts @@ -14,11 +14,10 @@ interface WallhavenItem { } export default class Wall extends BaseCommand { - static description = 'describe the command here'; + static description = 'download a wallpaper from wallhaven using search'; static examples = [ - `$ nbx wall -hello world from ./src/hello.ts! + `$ nbx wall -r "cat" -o "wall.jpg" -fg `, ];