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

Add tab --check, a config validation utility #169

Closed
austinjones opened this issue Oct 6, 2020 · 1 comment
Closed

Add tab --check, a config validation utility #169

austinjones opened this issue Oct 6, 2020 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@austinjones
Copy link
Owner

austinjones commented Oct 6, 2020

Add a validation command that checks tab.yml for errors. There are many misconfigurations that aren't serious enough to break tab selection.

Recurse the current scope, discover all configs, and lint them:

  • Check for non-parsable configs
  • Check for incorrect config types (e.g. a repo link that contains a workspace config)
  • Check for invalid tab names (validated by the command-line parser in tab/src/cli.rs)
  • Warn on links with no config (e.g. a repo link with a valid path, but no config)

If a config parse error occurs during tab startup, suggest that the user use tab --check to lint their config files.

@austinjones austinjones added this to the 0.5.0 milestone Oct 7, 2020
@austinjones austinjones added the enhancement New feature or request label Oct 13, 2020
@austinjones
Copy link
Owner Author

Resolved by #207 and #208

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant