Skip to content

Conversation

Brocco
Copy link
Contributor

@Brocco Brocco commented Feb 21, 2018

This change removes the dependency of the ember-cli command structure.

@Brocco Brocco force-pushed the option-refactor branch 3 times, most recently from 327d9a1 to e9c854d Compare February 22, 2018 19:50
@Brocco Brocco force-pushed the option-refactor branch 18 times, most recently from 94aeda4 to 2062349 Compare March 1, 2018 18:26
@Brocco Brocco force-pushed the option-refactor branch 6 times, most recently from ef7c146 to bdf816a Compare March 5, 2018 19:19
@Brocco Brocco force-pushed the option-refactor branch 4 times, most recently from 7ab5470 to c15a808 Compare March 5, 2018 23:45
Copy link
Contributor

@hansl hansl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some first comments.

`Error 418: As Awesome As Can Get.`
`Error 418: As Awesome As Can Get.`,
`I spy with my little eye a great developer!`,
`noop... already awesome.`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capital letter?

project: environment.project,
ui: this.ui,
};
return runCommand(environment.commands, environment.cliArgs, logger, context)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we doing await/async in this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I can refactor, but I wanted it working first.

@@ -24,6 +24,8 @@ module.exports = function(commands, commandName, commandArgs, optionHash) {
// Attempt to find command in ember-cli core commands
let command = findCommand(commands, commandName);


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove empty new lines.

}

validate(_options: any): boolean | Promise<boolean> {
return true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for this, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a base implementation that can be overridden, but the runner relies on a boolean being returned. Not all commands will implement validate.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I pointed to the wrong file. the Doc command still has an empty override.


availableOptions: [
export default class GetCommand extends Command {
public name = 'get';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

readonly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't hurt anything by adding it.

@Brocco
Copy link
Contributor Author

Brocco commented Mar 6, 2018

When this PR gets merged, this devkit PR should be merged too: angular/devkit#481

@Brocco Brocco force-pushed the option-refactor branch 2 times, most recently from 93d2afd to b9df667 Compare March 6, 2018 20:01
hansl
hansl previously approved these changes Mar 6, 2018
Copy link
Contributor

@hansl hansl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. We can rework stuff with the TODOs in there. Cheers!

This change removes the dependency of the ember-cli command structure.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants