1
1
mirror of https://github.com/theoludwig/html-w3c-validator.git synced 2024-10-29 22:17:28 +01:00
html-w3c-validator/src/cli.ts

14 lines
398 B
TypeScript
Raw Normal View History

2022-01-06 19:52:25 +01:00
import { Builtins, Cli } from 'clipanion'
import { HTMLValidatorCommand } from './HTMLValidatorCommand.js'
import { packageJSON } from './packageJSON.js'
2022-01-06 19:52:25 +01:00
export const cli = new Cli({
binaryLabel: packageJSON.name,
binaryName: packageJSON.name,
binaryVersion: packageJSON.version
})
cli.register(Builtins.HelpCommand)
cli.register(Builtins.VersionCommand)
cli.register(HTMLValidatorCommand)