mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
56 lines
1.6 KiB
JavaScript
56 lines
1.6 KiB
JavaScript
var main = require('./main.js');
|
|
var catalog = require('../packaging/catalog/catalog.js');
|
|
var Console = require('../console/console.js').Console;
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
// Command reminders for those more familiar with Rails
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
main.registerCommand({
|
|
name: 'server',
|
|
maxArgs: Infinity,
|
|
requiresRelease: false,
|
|
requiresApp: false,
|
|
pretty: false,
|
|
catalogRefresh: new catalog.Refresh.Never()
|
|
}, function (options) {
|
|
Console.error("Did you mean " + Console.command("'meteor run'") + "?");
|
|
throw new main.ExitWithCode(1);
|
|
});
|
|
|
|
main.registerCommand({
|
|
name: 'console',
|
|
maxArgs: Infinity,
|
|
requiresRelease: false,
|
|
requiresApp: false,
|
|
pretty: false,
|
|
catalogRefresh: new catalog.Refresh.Never()
|
|
}, function (options) {
|
|
Console.error("Did you mean " + Console.command("'meteor shell'") + "?");
|
|
throw new main.ExitWithCode(1);
|
|
});
|
|
|
|
main.registerCommand({
|
|
name: 'new',
|
|
maxArgs: Infinity,
|
|
requiresRelease: false,
|
|
requiresApp: false,
|
|
pretty: false,
|
|
catalogRefresh: new catalog.Refresh.Never()
|
|
}, function (options) {
|
|
Console.error("Did you mean " + Console.command("'meteor create'") + "?");
|
|
throw new main.ExitWithCode(1);
|
|
});
|
|
|
|
main.registerCommand({
|
|
name: 'dbconsole',
|
|
maxArgs: Infinity,
|
|
requiresRelease: false,
|
|
requiresApp: false,
|
|
pretty: false,
|
|
catalogRefresh: new catalog.Refresh.Never()
|
|
}, function (options) {
|
|
Console.error("Did you mean " + Console.command("'meteor mongo'") + "?");
|
|
throw new main.ExitWithCode(1);
|
|
});
|