Skip to content

Update hs init and hs auth for config revamp #1448

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

Open
wants to merge 2 commits into
base: config-revamp-main
Choose a base branch
from

Conversation

camden11
Copy link
Contributor

Description and Context

This updates hs init and hs auth (and also app migrate) to work with the new config changes.

Who to Notify

@brandenrodgers @kemmerle @joe-yeager

logger.error(i18n(`${i18nKey}.errors.noConfigFileFound`));
process.exit(EXIT_CODES.ERROR);
}
const configPath = getConfigFilePath();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

No longer need to manually error - getConfigFilePath will throw if there's no config

);
process.exit(EXIT_CODES.ERROR);
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Figured we could simplify this logic a bit. If any config file exists (which we check for above), exit regardless of whether its local or global. I updated the error message to make it make sense for both cases

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.

1 participant