src/ez/main.bend fails
raw source on the hub · import 0x886223f5c47e4983fe57d887c034bc7f/src/ez/main.bend as Main
ez: the one binary. The line is a Shake.Cli (L.spec): parse binds the
command and its flags, and get / on read the bindings. How a line ends
is decided in ez/line.bend (L.line, L.status): a command runs, help is
shown and the line exits 0, or the line is misused and exits 1. This file
prints and exits as they say and runs the command, which is trusted under
EZ-TRUST-2. IO.args() is copied so each word can be read more than once.
The repo's top-level main.bend calls this main, and is the file that gets
built. Build it native (bend main.bend -o bin/ez.bin); interpreted, bend's
own CLI would take the flags meant for ez.
12 imports
import Base import 0xcab8a7a189cec2b51e8db0484f69c593/main.bend as Shake import ../share/args.bend as Args import ./cmd.bend as Cmd import ./test.bend as Test import ./prove.bend as Prove import ../doctor/run.bend as DoctorRun import ../tool/run.bend as ToolRun import ../tool/world.bend as TW import ../share/say.bend as Say import ../io/file.bend as F import ../ez/line.bend as L
The reader could not load this file (at 0x886223f5c47e4983fe57d887c034bc7f/src/add/hub.bend:87). What bend.ts says:
Error:
- expected : a fresh constructor name (duplicate declaration: Wait)
- observed : 'Wait'
Location:
86 | Go{hash: String, files: List<&2, K.Item>, srcs: List<&2, String>}
87>| Wait{asks: List<&2, W.Ask>}
| ^^^^
88 | Stop{why: String}