Error: Cannot find module redis SourceDir: /home/ubuntu
This commit is contained in:
parent
e4b39d9ae4
commit
64f9836fb2
20
hostcontrol.js
Executable file
20
hostcontrol.js
Executable file
@ -0,0 +1,20 @@
|
||||
#! /usr/bin/env node
|
||||
|
||||
//you must add the absolute path to hosts.js on line 4, or this file will NOT work
|
||||
const hosts = require("./models/hosts.js")
|
||||
|
||||
|
||||
if (process.argv[2] == "--list"){
|
||||
console.log(hosts.listAll())
|
||||
}
|
||||
/*
|
||||
if process.argv[2] == "--info"
|
||||
|
||||
if process.agrv[2] == "--add"
|
||||
|
||||
if process.argv[2] == "--remove"
|
||||
|
||||
else{
|
||||
console.log("help text")
|
||||
}
|
||||
*/
|
Loading…
x
Reference in New Issue
Block a user