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

Use nearest wing.toml (if available) to find entrypoint for wing commands #6751

Open
MarkMcCulloh opened this issue Jun 19, 2024 · 2 comments
Labels
⌨️ cli CLI ✨ enhancement New feature or request needs-discussion Further discussion is needed prior to impl

Comments

@MarkMcCulloh
Copy link
Contributor

Use Case

Given a folder structure:

- app/
  - wing.toml
  - main.w
  - util/
    - lib.w

and a cwd of app/util, running wing it should run app/main.w

Proposed Solution

When a wing command is run, search up directories until a wing.toml is found.
If none is found, use existing behavior to select an available wing file.
If a wing.toml is found, the existing behavior should be used to find a wing file within that directory instead

Implementation Notes

No response

Component

No response

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.
  • If this issue is labeled needs-discussion, it means the spec has not been finalized yet. Please reach out on the #dev channel in the Wing Discord.
@MarkMcCulloh MarkMcCulloh added ✨ enhancement New feature or request ⌨️ cli CLI needs-discussion Further discussion is needed prior to impl labels Jun 19, 2024
@eladb
Copy link
Contributor

eladb commented Jun 23, 2024

If a wing.toml is found, the existing behavior should be used to find a wing file within that directory instead

I think the IDE should find all wing entrypoints starting at wing.toml (tests and main files)

@MarkMcCulloh
Copy link
Contributor Author

This feature is related to the CLI specifically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⌨️ cli CLI ✨ enhancement New feature or request needs-discussion Further discussion is needed prior to impl
Projects
Status: 🤝 Backlog - handoff to owners
Development

No branches or pull requests

2 participants