Skip to content

Commit

Permalink
fix(cli): fix completion and make-this-awesome command invalid pr…
Browse files Browse the repository at this point in the history
  • Loading branch information
goorockey authored and Jonathan Jayet committed Oct 14, 2016
1 parent 6fc26d9 commit 9332070
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions packages/angular-cli/commands/easter-egg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ function pickOne(of: string[]): string {
}


export default function(name: string) {
return Command.extend({
name: name,
works: 'insideProject',

run: function (commandOptions: any, rawArgs: string[]): Promise<void> {
(this as any)[stringUtils.camelize(this.name)](commandOptions, rawArgs);

return Promise.resolve();
},

makeThisAwesome: function() {
const phrase = pickOne([
`You're on it, there's nothing for me to do!`,
`Let's take a look... nope, it's all good!`,
`You're doing fine.`,
`You're already doing great.`,
`Nothing to do; already awesome. Exiting.`,
`Error 418: As Awesome As Can Get.`
]);
console.log(chalk.green(phrase));
}
});
};
const MakeThisAwesomeCommand = Command.extend({
name: 'make-this-awesome',
works: 'insideProject',

run: function (commandOptions: any, rawArgs: string[]): Promise<void> {
(this as any)[stringUtils.camelize(this.name)](commandOptions, rawArgs);

return Promise.resolve();
},

makeThisAwesome: function() {
const phrase = pickOne([
`You're on it, there's nothing for me to do!`,
`Let's take a look... nope, it's all good!`,
`You're doing fine.`,
`You're already doing great.`,
`Nothing to do; already awesome. Exiting.`,
`Error 418: As Awesome As Can Get.`
]);
console.log(chalk.green(phrase));
}
});

export default MakeThisAwesomeCommand;

0 comments on commit 9332070

Please sign in to comment.