(Box inside, Runnable r, String name, String doc)
| 150 | } |
| 151 | |
| 152 | static public void exportAsCommand(Box inside, Runnable r, String name, String doc) { |
| 153 | inside.properties.getOrConstruct(command) |
| 154 | .put(name, (FunctionOfBox) (x) -> { |
| 155 | r.run(); |
| 156 | return null; |
| 157 | }); |
| 158 | inside.properties.getOrConstruct(commandDoc) |
| 159 | .put(name, doc); |
| 160 | } |
| 161 | |
| 162 | static public void exportAsCommand(Box inside, Runnable r, FunctionOfBox<Boolean> guard, String name, String doc) { |
| 163 | inside.properties.getOrConstruct(command) |
no test coverage detected