File tree Expand file tree Collapse file tree 1 file changed +20
-6
lines changed Expand file tree Collapse file tree 1 file changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,30 @@ import { BaseCommand } from '@adonisjs/core/build/standalone'
2
2
3
3
export default class {{ filename }} extends BaseCommand {
4
4
5
- /**
6
- * Command Name is used to run the command
7
- */
5
+ /**
6
+ * Command Name is used to run the command
7
+ */
8
8
public static commandName = '{{#toCommandName}}{{ filename }}{{/toCommandName}}'
9
9
10
- /**
11
- * Command Name is displayed in the "help" output
12
- */
10
+ /**
11
+ * Command Name is displayed in the "help" output
12
+ */
13
13
public static description = ''
14
14
15
+ public static settings = {
16
+ /**
17
+ * Set the following value to true, if you want to load the application
18
+ * before running the command
19
+ */
20
+ loadApp: false,
21
+
22
+ /**
23
+ * Set the following value to true, if you want this command to keep running until
24
+ * you manually decide to exit the process
25
+ */
26
+ stayAlive: false,
27
+ }
28
+
15
29
public async run () {
16
30
this.logger.info('Hello world!')
17
31
}
You can’t perform that action at this time.
0 commit comments