geolexica / breviter

The project for reverse semantic search for NLnet
Other
2 stars 1 forks source link

Nice to have: clean up cli.ts #22

Closed ronaldtse closed 2 years ago

ronaldtse commented 2 years ago

In cli.ts, there is this block:

// TODO: Move this code into the compute module.
const parser = yargs.command(
  compute.command,
  compute.desc,
  (yargs) =>
...

There are two long functions as the 3rd and 4th arguments. I attempted to extract them into a separate module (at commands/compute.ts), but I couldn't get the types matching.

This task is to extract these two functions into commands/compute.ts.