]> gitweb.factorcode.org Git - factor.git/commitdiff
zealot.help-lint: use require instead of load.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 10 Nov 2020 22:05:43 +0000 (14:05 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 10 Nov 2020 22:05:43 +0000 (14:05 -0800)
extra/zealot/help-lint/help-lint.factor

index 76b6f5a67f5ddaf7ee67bf3f47b9ba087ed5bf25..9f4260236d38ed08351381106f8df0a30dad3ad4 100644 (file)
@@ -1,7 +1,7 @@
 ! Copyright (C) 2019 Doug Coleman.
 ! See http://factorcode.org/license.txt for BSD license.
-USING: assocs cache command-line help.lint io io.monitors kernel
-namespaces prettyprint sequences system vocabs.hierarchy ;
+USING: assocs command-line help.lint io kernel namespaces
+prettyprint sequences system vocabs.loader ;
 IN: zealot.help-lint
 
 ! FIXME: help-lint sometimes lists monitors and event-streams as leaked.
@@ -18,7 +18,7 @@ CONSTANT: ignored-resources {
 
 ! Allow testing without calling exit
 : zealot-help-lint ( exit? -- )
-    command-line get [ load ] each
+    command-line get require-all
     help-lint-all
     lint-failures get filter-flaky-resources
     [ nip assoc-empty? [ "==== FAILING LINT" print :lint-failures flush ] unless ]
@@ -27,4 +27,4 @@ CONSTANT: ignored-resources {
 : zealot-help-lint-main ( -- )
     t zealot-help-lint ;
 
-MAIN: zealot-help-lint-main
\ No newline at end of file
+MAIN: zealot-help-lint-main