Pass in configs to a Tiltfile when called with `load` or `include`
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 10.1k
- Forks
- 413
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 6
Description
When using https://docs.tilt.dev/api.html#api.load or https://docs.tilt.dev/api.html#api.include, there's no way to pass in arguments/configs.
Suppose on the command line you run Tilt and pass in configs that you want to then want to pass further into loaded/included Tiltfiles. There should be a way to do this.
On Slack https://kubernetes.slack.com/archives/CESBL84MV/p1598878274009500, a user indicated that they would like to do this to allow an AppDev to specify ports that may be specific to their machine.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the api.load and api.include documentation linked in the issue, then trace how command-line configs are represented and how loaded or included Tiltfiles receive context. Done means a caller can pass selected configs through load or include and the nested Tiltfile can use them for machine-specific settings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100