Commits

Taku Miyakawa committed 1fa7b01

Factor out .show in START module to SHOW_BUILDER

  • Participants
  • Parent commits 886c76d

Comments (0)

Files changed (1)

File src/main/kink/_internal/START.kn

 :_run = { (:Program :Argv)
     :Env = module('CORE').child(
         'Argv' Argv
-        'show' { > :Env
-            '<env:#program.name=' + Program.name.show + ':hash=' + Env.hash + '>'
+        'show' { > :Env ()
+            use('SHOW_BUILDER')
+            SHOW_BUILDER.new('env')
+            .add('#program.name' Program.name.show)
+            .add('hash')
+            .build(Env)
         }
     )
     (! Program.valid?).then {