@@ -8,27 +8,27 @@ function pickOne(of: string[]): string {
8
8
}
9
9
10
10
11
- export default function ( name : string ) {
12
- return Command . extend ( {
13
- name : name ,
14
- works : 'insideProject' ,
15
-
16
- run : function ( commandOptions : any , rawArgs : string [ ] ) : Promise < void > {
17
- ( this as any ) [ stringUtils . camelize ( this . name ) ] ( commandOptions , rawArgs ) ;
18
-
19
- return Promise . resolve ( ) ;
20
- } ,
21
-
22
- makeThisAwesome : function ( ) {
23
- const phrase = pickOne ( [
24
- `You're on it, there 's nothing for me to do !`,
25
- `Let's take a look... nope, it's all good! `,
26
- `You're doing fine .` ,
27
- `You're already doing great .`,
28
- `Nothing to do; already awesome. Exiting.` ,
29
- `Error 418: As Awesome As Can Get.`
30
- ] ) ;
31
- console . log ( chalk . green ( phrase ) ) ;
32
- }
33
- } ) ;
34
- } ;
11
+ const MakeThisAwesomeCommand = Command . extend ( {
12
+ name : 'make-this-awesome' ,
13
+ works : 'insideProject' ,
14
+
15
+ run : function ( commandOptions : any , rawArgs : string [ ] ) : Promise < void > {
16
+ ( this as any ) [ stringUtils . camelize ( this . name ) ] ( commandOptions , rawArgs ) ;
17
+
18
+ return Promise . resolve ( ) ;
19
+ } ,
20
+
21
+ makeThisAwesome : function ( ) {
22
+ const phrase = pickOne ( [
23
+ `You're on it, there's nothing for me to do!` ,
24
+ `Let's take a look... nope, it 's all good !`,
25
+ `You're doing fine. `,
26
+ `You're already doing great .` ,
27
+ `Nothing to do; already awesome. Exiting .`,
28
+ `Error 418: As Awesome As Can Get.`
29
+ ] ) ;
30
+ console . log ( chalk . green ( phrase ) ) ;
31
+ }
32
+ } ) ;
33
+
34
+ export default MakeThisAwesomeCommand ;
0 commit comments