moved all files to code directory

This commit is contained in:
2019-09-02 11:26:48 -04:00
parent 03d6973171
commit 236753b383
18 changed files with 0 additions and 0 deletions

25
nodejs/hostcontrol.js Executable file
View File

@ -0,0 +1,25 @@
#! /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")
const command = process.argv[2];
(async function(command){
if (command == "--list"){
console.log(await hosts.listAll())
process.exit(0)
}
})(command)
/*
if process.argv[2] == "--info"
if process.agrv[2] == "--add"
if process.argv[2] == "--remove"
else{
console.log("help text")
}
*/