aboutsummaryrefslogtreecommitdiff
path: root/examples/tomo-install
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-04 17:06:09 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-04 17:06:09 -0400
commit0b8074154e2671691050bdb3bcb33245625a056c (patch)
tree1410e0c4e05c6372e876cd08f16d117e12868f41 /examples/tomo-install
parentfadcb45baf1274e06cfe37b87655b9146aa52874 (diff)
First working compile of refactor to add explicit typing to declarations
and support untyped empty collections and `none`s
Diffstat (limited to 'examples/tomo-install')
-rw-r--r--examples/tomo-install/tomo-install.tm4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tomo-install/tomo-install.tm b/examples/tomo-install/tomo-install.tm
index e584fe66..c705af12 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))
@@ -25,7 +25,7 @@ func main(paths:[Path]):
if paths.length == 0:
paths = [(./)]
- urls := (++: find_urls(p) for p in paths) or [:Text]
+ urls := (++: find_urls(p) for p in paths) or []
github_token := (~/.config/tomo/github-token):read()