Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Commit

Permalink
fix: doc improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 14, 2018
1 parent 9b53ceb commit 740c0d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions templates/src/command.js.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ class <%- klass %> extends Command {
}
}

<%- klass %>.description = `
Describe the command here
...
Extra documentation goes here
`

<%- klass %>.flags = {
<%_ if (type === 'single') { _%>
// add --version flag to show CLI version
Expand Down
2 changes: 1 addition & 1 deletion templates/src/command.ts.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ hello world from <%- name %>!
`$ <%- cmd %> --name myname
hello myname from <%- name %>!
`,
'$ <%- cmd %> file outputs "hello world!" to file',
'$ <%- cmd %> ./afile outputs "hello world!" to ./afile',
'$ <%- cmd %> --force',
'$ <%- cmd %> --help',
]
Expand Down

0 comments on commit 740c0d7

Please sign in to comment.