mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 03:03:44 +08:00
25 lines
784 B
JavaScript
Executable File
25 lines
784 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
const program = require('commander');
|
|
|
|
// We're requiring this here so it'll setup some promise rejection hooks to log
|
|
// out.
|
|
require('./util');
|
|
|
|
// Setup the program.
|
|
program
|
|
.command('serve', 'serve the application')
|
|
.command('db', 'run database commands')
|
|
.command('settings', 'interact with the application settings')
|
|
.command('assets', 'interact with assets')
|
|
.command('setup', 'setup the application')
|
|
.command('jobs', 'work with the job queues')
|
|
.command('token', 'work with the access tokens')
|
|
.command('users', 'work with the application auth')
|
|
.command('migration', 'provides utilities for migrating the database')
|
|
.command(
|
|
'plugins',
|
|
'provides utilities for interacting with the plugin system'
|
|
)
|
|
.parse(process.argv);
|