Browse Source

📝 add docs for commands

pull/4/head
Nicolas Beaussart 6 years ago
parent
commit
964185b069
No known key found for this signature in database GPG Key ID: 51D5A407BFCE64A9
  1. 8
      src/commands/add/prettier.ts
  2. 5
      src/commands/wall/index.ts

8
src/commands/add/prettier.ts

@ -9,13 +9,7 @@ import { BaseAddCommand } from '../../utls/base-add-command';
plugins.set('fs', fs); plugins.set('fs', fs);
export default class Prettier extends BaseAddCommand { 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 = { static flags = {
...BaseCommand.flags, ...BaseCommand.flags,

5
src/commands/wall/index.ts

@ -14,11 +14,10 @@ interface WallhavenItem {
} }
export default class Wall extends BaseCommand { export default class Wall extends BaseCommand {
static description = 'describe the command here';
static description = 'download a wallpaper from wallhaven using search';
static examples = [ static examples = [
`$ nbx wall
hello world from ./src/hello.ts!
`$ nbx wall -r "cat" -o "wall.jpg" -fg
`, `,
]; ];

Loading…
Cancel
Save