grind-http
Version:
HTTP kernel for Grind, powered by Express
21 lines (17 loc) • 487 B
JavaScript
import { Command, InputOption, AbortError } from 'grind-cli'
export class ServeCommand extends Command {
name = 'serve'
description = 'Start the HTTP server'
options = [
new InputOption(
'cluster',
InputOption.VALUE_OPTIONAL,
'Run in cluster mode.',
'Number of CPU cores',
),
new InputOption('pid', InputOption.VALUE_OPTIONAL, 'Write the PID to a file.'),
]
run() {
throw new AbortError('You should not be seeing this, please check your Grind project.')
}
}