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

Print detailed help, so as blueprint help is displayed again. #4267

Merged

Conversation

catull
Copy link
Contributor

@catull catull commented Jan 28, 2017

This logic was present in beta.20, as pointed out in the issue #3699.

Consequently, this PR re-introduces the logic, and thus fixes issue #3699, closes #3699.

@third-bank-of-the-river
Copy link

third-bank-of-the-river commented Feb 4, 2017

Windows 10 - IntelliJ Idea Ultimate 2016.3.4 has angular-cli support but it doesnot work.
3.7.3 - npm
5.8.0 - nodejs

Idea 2016.3.4 fix not working:
open this menu File::New::Angular CLI this message shows up "No matches found"

`C:\Users\Elitebook>ng help generate
You are running version 5.8.0 of Node, which will not be supported in future
versions of the CLI. The official Node version that will be supported is 6.9 and greater.

Available blueprints:
@angular/cli:
class <options...>
--spec (Boolean)
component <options...>
--flat (Boolean) (Default: false)
--inline-template (Boolean)
aliases: -it
--inline-style (Boolean)
aliases: -is
--prefix (String) (Default: null)
--spec (Boolean)
--view-encapsulation (String)
aliases: -ve
--change-detection (String)
aliases: -cd
--skip-import (Boolean) (Default: false)
--module (String)
aliases: -m
--export (Boolean) (Default: false)
directive <options...>
--flat (Boolean) (Default: true)
--prefix (String) (Default: null)
--spec (Boolean)
--skip-import (Boolean) (Default: false)
--module (String)
aliases: -m
--export (Boolean) (Default: false)
enum
interface
module <options...>
--spec (Boolean)
--routing (Boolean) (Default: false)
ng2 <options...>
--source-dir (String) (Default: src)
aliases: -sd
--prefix (String) (Default: app)
aliases: -p
--style (String) (Default: css)
--routing (Boolean) (Default: false)
--inline-style (Boolean) (Default: false)
aliases: -is
--inline-template (Boolean) (Default: false)
aliases: -it
--skip-git (Boolean) (Default: false)
aliases: -sg
pipe <options...>
--flat (Boolean) (Default: true)
--spec (Boolean)
--skip-import (Boolean) (Default: false)
--module (String)
aliases: -m
--export (Boolean) (Default: false)
service <options...>
--flat (Boolean) (Default: true)
--spec (Boolean)
--module (String)
aliases: -m

undefined`

@catull
Copy link
Contributor Author

catull commented Feb 6, 2017

@foofighter69 What do you expect ng help generate to display ?

Without the PR, all you get when calling ng help generate is

ng generate <blueprint> <options...>
  Generates new code from blueprints.
  aliases: g
  --dry-run (Boolean) (Default: false)
    aliases: -d
  --verbose (Boolean) (Default: false)
    aliases: -v
  --pod (Boolean) (Default: false)
    aliases: -p
  --classic (Boolean) (Default: false)
    aliases: -c
  --dummy (Boolean) (Default: false)
    aliases: -dum, -id
  --in-repo-addon (String) (Default: null)
    aliases: --in-repo <value>, -ir <value>

With the patch, you actually get some help text about blueprints such as class, component, directive, enum, interface, module, ng2, pipe and service.

So, what do you expect ng help generate to display ?

This PR is of little use to you, given you use an IDE. If the IDE supports blueprints, then you are unaffected.

This PR has nothing to do with your problem.

Your problem is something IntelliJ must be made aware of, not the Angular CLI team.
Part of your problem is that you use nodeJS 5.8, which will not be supported supported by Angular CLI.

@catull catull force-pushed the fix-3699-help-generate-print-blueprints branch from f313bee to 58f7d16 Compare February 6, 2017 21:19
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, thanks.

@hansl hansl merged commit b20d87e into angular:master Feb 9, 2017
@catull catull deleted the fix-3699-help-generate-print-blueprints branch February 9, 2017 19:29
asnowwolf pushed a commit to asnowwolf/angular-cli that referenced this pull request Apr 12, 2017
@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 11, 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.

ng help generate does not list existing blueprints (beta24)
4 participants