2012-05-02 14:02:58 +00:00
|
|
|
/*\
|
2012-05-03 20:47:16 +00:00
|
|
|
title: $:/core/modules/commands/verbose.js
|
2012-05-02 14:02:58 +00:00
|
|
|
type: application/javascript
|
|
|
|
module-type: command
|
|
|
|
|
|
|
|
Verbose command
|
|
|
|
|
|
|
|
\*/
|
|
|
|
(function(){
|
|
|
|
|
|
|
|
/*jslint node: true, browser: true */
|
2012-05-04 17:49:04 +00:00
|
|
|
/*global $tw: false */
|
2012-05-02 14:02:58 +00:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
exports.info = {
|
|
|
|
name: "verbose",
|
2012-05-02 16:26:36 +00:00
|
|
|
synchronous: true
|
2012-05-04 17:49:04 +00:00
|
|
|
};
|
2012-05-02 14:02:58 +00:00
|
|
|
|
|
|
|
var Command = function(params,commander) {
|
|
|
|
this.params = params;
|
|
|
|
this.commander = commander;
|
|
|
|
};
|
|
|
|
|
|
|
|
Command.prototype.execute = function() {
|
|
|
|
this.commander.verbose = true;
|
2014-05-15 17:50:14 +00:00
|
|
|
// Output the boot message log
|
|
|
|
this.commander.streams.output.write("Boot log:\n " + $tw.boot.logMessages.join("\n ") + "\n");
|
2012-05-02 14:02:58 +00:00
|
|
|
return null; // No error
|
2012-05-04 17:49:04 +00:00
|
|
|
};
|
2012-05-02 14:02:58 +00:00
|
|
|
|
|
|
|
exports.Command = Command;
|
|
|
|
|
|
|
|
})();
|