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

[TS-2038] Introduce simplistic project validation #6

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

ethangreen-dev
Copy link
Member

TL;DR

This PR adds an additional validation step to Project::open, which applies simple assertions onto the state of the provided project directory. This notably provides a more descriptive error in instances when project-specific commands are run within a directory with no initialized project.

Changes

  • Add Project::open_unchecked to allow for the struct to be created purely to obtain access to its path fields.
  • Add Project::validate to perform project structure validation.

Add Project::open_unchecked to allow for the struct to be created purely to
obtain access to its path fields.

Add Project::validate to perform project structure validation.

refs: TS-2038
@ethangreen-dev ethangreen-dev force-pushed the TS-2038/improve-proj-init-errs branch from 179ce7a to c967aad Compare April 9, 2024 16:01
@ethangreen-dev ethangreen-dev merged commit b4a6bf5 into develop Apr 9, 2024
2 of 4 checks passed
@ethangreen-dev ethangreen-dev deleted the TS-2038/improve-proj-init-errs branch April 9, 2024 16:03
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