Skip to content

Commit

Permalink
Add link to var substitution spec (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronlehmann authored Mar 5, 2024
1 parent 80010c2 commit 7150274
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions devcontainer/devcontainer.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ func SubstituteVars(s string, workspaceFolder string) string {
}
}

// Spec for variable substitutions:
// https://containers.dev/implementors/json_reference/#variables-in-devcontainerjson
func substitute(varExpr string, workspaceFolder string) string {
parts := strings.Split(varExpr, ":")
if len(parts) == 1 {
Expand Down

0 comments on commit 7150274

Please sign in to comment.