mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
16 lines
298 B
TypeScript
16 lines
298 B
TypeScript
import { Command } from 'commander'
|
|
import { ftp } from './ftp'
|
|
|
|
type Options = {
|
|
debug: boolean
|
|
}
|
|
|
|
export const ServeCommand = () => {
|
|
const cmd = new Command(`serve`)
|
|
.description(`Run an edge FTP server`)
|
|
.action(async (options: Options) => {
|
|
await ftp()
|
|
})
|
|
return cmd
|
|
}
|