tilt-dev / tilt-dev/tilt

Pass in configs to a Tiltfile when called with `load` or `include`

Open
#3,735 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.