diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 19:20:07 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 19:20:07 -0400 |
| commit | 1d2e55f53dfab5153dbfd0c03f28cd9daedb3b77 (patch) | |
| tree | aa1c21191800467abe0b3d16cb6c2a0c2e4587f9 /examples/tomo-install/tomo-install.tm | |
| parent | bc93dea8186168aa015b05a615bc1873173393b5 (diff) | |
Allow uninitialized variables when there's a sensible empty value
(defaults to empty/zero value)
Diffstat (limited to 'examples/tomo-install/tomo-install.tm')
| -rw-r--r-- | examples/tomo-install/tomo-install.tm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tomo-install/tomo-install.tm b/examples/tomo-install/tomo-install.tm index fd8b3c40..c7d752ee 100644 --- a/examples/tomo-install/tomo-install.tm +++ b/examples/tomo-install/tomo-install.tm @@ -11,7 +11,7 @@ _HELP := " " func find_urls(path:Path -> [Text]) - urls : @[Text] = @[] + urls : @[Text] if path.is_directory() for f in path.children() urls.insert_all(find_urls(f)) @@ -40,7 +40,7 @@ func main(paths:[Path]) say("Already installed: $url") skip - alias : Text? = none + alias : Text? curl_flags := ["-L"] if github := url_without_protocol.pattern_captures($Pat"github.com/{!/}/{!/}#{..}") user := github[1] |
