Added 'shout config' command
This commit is contained in:
parent
5e9c032591
commit
100d3dee18
10
README.md
10
README.md
|
@ -30,6 +30,7 @@ shout
|
||||||
```
|
```
|
||||||
|
|
||||||
For more information:
|
For more information:
|
||||||
|
|
||||||
```
|
```
|
||||||
shout --help
|
shout --help
|
||||||
```
|
```
|
||||||
|
@ -40,7 +41,13 @@ shout --help
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
Open your `config.json` file and edit:
|
Open the `config.json` file by running:
|
||||||
|
|
||||||
|
```
|
||||||
|
shout config
|
||||||
|
```
|
||||||
|
|
||||||
|
The settings:
|
||||||
|
|
||||||
__port__
|
__port__
|
||||||
The default port to be used.
|
The default port to be used.
|
||||||
|
@ -50,6 +57,7 @@ __public__
|
||||||
Set to either `true|false`.
|
Set to either `true|false`.
|
||||||
When set to `false`, a login will be required for connecting users.
|
When set to `false`, a login will be required for connecting users.
|
||||||
|
|
||||||
|
|
||||||
## User Management
|
## User Management
|
||||||
|
|
||||||
Go ahead and run `shout --help`:
|
Go ahead and run `shout --help`:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "shout",
|
"name": "shout",
|
||||||
"description": "A web IRC client",
|
"description": "A web IRC client",
|
||||||
"version": "0.10.4",
|
"version": "0.10.5",
|
||||||
"author": "Mattias Erming",
|
"author": "Mattias Erming",
|
||||||
"preferGlobal": true,
|
"preferGlobal": true,
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
var program = require("commander");
|
||||||
|
var child = require("child_process");
|
||||||
|
|
||||||
|
program
|
||||||
|
.command("config")
|
||||||
|
.description("Open the config")
|
||||||
|
.action(function() {
|
||||||
|
child.spawn(
|
||||||
|
"sudo",
|
||||||
|
["vim", process.cwd() + "/config.json"],
|
||||||
|
{stdio: "inherit"}
|
||||||
|
);
|
||||||
|
});
|
|
@ -1,6 +1,7 @@
|
||||||
var program = require("commander");
|
var program = require("commander");
|
||||||
|
|
||||||
require("./start");
|
require("./start");
|
||||||
|
require("./config");
|
||||||
require("./list");
|
require("./list");
|
||||||
require("./add");
|
require("./add");
|
||||||
require("./remove");
|
require("./remove");
|
||||||
|
|
Loading…
Reference in New Issue