| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| const GetCommand = Command.extend({ | ||
| name: 'get', | ||
| description: 'Get a value from the configuration.', | ||
| description: 'Get a value from the configuration. Example: ng get project.name', |
There was a problem hiding this comment.
@prestonvanloon Please change this to match format eg. "ng new [name]".
Sorry, something went wrong.
There was a problem hiding this comment.
Done.
Sorry, something went wrong.
| export default function() { | ||
| return Promise.resolve() | ||
| .then(() => expectToFail(() => ng('get', 'apps.zzz.prefix'))) | ||
| .then(() => expectToFail(() => ng('get', undefined))) |
There was a problem hiding this comment.
This should be just ng('get') as ng get undefined seems to be working fine already as it is converted to string key.
Sorry, something went wrong.
There was a problem hiding this comment.
Done.
Sorry, something went wrong.
|
I think this should be closed in favor of returning the whole config object when no param specified. I'll submit a new PR later. |
Sorry, something went wrong.
|
Or this PR modified to return the whole object. Not sure what is preferred. |
Sorry, something went wrong.
|
I updated this PR title, description, and content with the changes outlined in my previous comment. |
Sorry, something went wrong.
|
Heya @prestonvanloon thanks for the work here. Can you rebase this PR? There's a couple of CI errors that were due to changes on our side, but it should be fine now. |
Sorry, something went wrong.
|
@filipesilva OK. Should be all good now. Thanks! |
Sorry, something went wrong.
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Running ng get without a config key would throw a invalidJsonPath error rather than a meaningful message.
This PR
Fixes #5886