-
-
Notifications
You must be signed in to change notification settings - Fork 797
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
[legacy-framework] Add helpful error messages to CLI when trying to use commands outside an app #319
[legacy-framework] Add helpful error messages to CLI when trying to use commands outside an app #319
Conversation
…y checked in init hook
const whitelistGlobal = ['new'] | ||
|
||
const hook: Hook<'init'> = async function (options) { | ||
// Bug with oclif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you open an issue with their project? would be good to get this fixed at some point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (err) { | ||
switch (message) { | ||
case IsBlitzRootError.notBlitz: | ||
this.log( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we use the @blitzjs/server/utils/log
utility rather than the Command logger?
Thank you @Zeko369!! |
Type: feature
Another shot at #203 because of Oclif bug
Breaking change: No, but the same was sad last time 😄