Skip to content

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
@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.

2 participants