Skip to content

Commit 580b063

Browse files
committed
feat(cli): add description to cli commands
1 parent 921b300 commit 580b063

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

packages/smooth-core/src/cli/index.js

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,21 @@ function runCmd(command) {
126126
})
127127
}
128128

129-
program.command('dev').action(() => runCmd(devCommand))
130-
program.command('build').action(() => runCmd(buildCommand))
131-
program.command('start').action(() => runCmd(startCommand))
129+
program
130+
.command('dev')
131+
.description(
132+
'Starts the application in development mode (hot-code reloading, error reporting, etc)',
133+
)
134+
.action(() => runCmd(devCommand))
135+
program
136+
.command('build')
137+
.description('Compiles the application for production deployment')
138+
.action(() => runCmd(buildCommand))
139+
program
140+
.command('start')
141+
.description(
142+
'Starts the application in production mode.\nThe application should be compiled with `smooth build` first.',
143+
)
144+
.action(() => runCmd(startCommand))
132145

133146
program.parse(process.argv)

0 commit comments

Comments
 (0)