Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): rename repository/service feature flags #1661

Merged
merged 1 commit into from
Aug 31, 2018

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Aug 31, 2018

This is a follow-up for #1652 and #1649.

  • Rename --enableRepository to --repositories (notice the plural form)
  • Rename --enableServices to --services

This commit fixes the inconsistency where --enableRepository was using the singular form, while --enableServices was using the plural form.

It also improves the feature prompt so that the word "enable" is not
repeated twice.

Before:

? Select project build settings:
❯◉ Enable tslint
 ◉ Enable prettier
 ◉ Enable mocha
 ◉ Enable loopbackBuild
 ◉ Enable vscode
 ◉ Enable enableRepository
 ◉ Enable enableServices

After:

? Select features to enable in the project:
❯◉ Enable tslint
 ◉ Enable prettier
 ◉ Enable mocha
 ◉ Enable loopbackBuild
 ◉ Enable vscode
 ◉ Enable repositories
 ◉ Enable services

Checklist

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

@bajtos bajtos self-assigned this Aug 31, 2018
@bajtos bajtos requested review from raymondfeng, virkt25, marioestradarosa and a team August 31, 2018 07:14
- Rename `--enableRepository` to `--repositories`
  (notice the plural form)
- Rename `--enableServices` to `--services`

This commit fixes the inconsistency where `--enableRepository` was
using the singular form, while `--enableServices` was using the plural
form.

It also improves the feature prompt so that the word "enable" is not
repeated twice.

Before:

    ? Select project build settings:
    ❯◉ Enable tslint
     ◉ Enable prettier
     ◉ Enable mocha
     ◉ Enable loopbackBuild
     ◉ Enable vscode
     ◉ Enable enableRepository
     ◉ Enable enableServices

After:

    ? Select features to enable in the project:
    ❯◉ Enable tslint
     ◉ Enable prettier
     ◉ Enable mocha
     ◉ Enable loopbackBuild
     ◉ Enable vscode
     ◉ Enable repositories
     ◉ Enable services
@bajtos bajtos force-pushed the fix/cli-feature-flags branch from e5e3c12 to cc8dd14 Compare August 31, 2018 11:36
@bajtos bajtos merged commit c089299 into master Aug 31, 2018
@bajtos bajtos deleted the fix/cli-feature-flags branch August 31, 2018 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants