| 1 | #!/usr/bin/env node |
| 2 | import { Command } from "commander"; |
| 3 | import merge from "./scripts/merge"; |
| 4 | import dev from "./scripts/dev"; |
| 5 | import createSpec from "./scripts/create-spec"; |
| 6 | import compile from "./scripts/compile"; |
| 7 | import init from "./scripts/init"; |
| 8 | import version from "./scripts/version"; |
| 9 | |
| 10 | const program = new Command(); |
| 11 | |
| 12 | program |
| 13 | .name("@withfig/autocomplete-tools") |
| 14 | .description("Dev tools for fig's autocomplete") |
| 15 | .version("1.0.0"); |
| 16 | program.addCommand(init); |
| 17 | program.addCommand(createSpec); |
| 18 | program.addCommand(compile); |
| 19 | program.addCommand(dev); |
| 20 | program.addCommand(merge); |
| 21 | program.addCommand(version); |
| 22 | |
| 23 | export { program }; |