2019-05-20 11:18:25 +00:00
|
|
|
import path from 'path';
|
|
|
|
|
2019-07-10 13:11:46 +00:00
|
|
|
export default function({ settings, ansi : a }) {
|
2019-05-23 21:26:31 +00:00
|
|
|
|
2019-05-20 11:18:25 +00:00
|
|
|
console.log(`${settings.program_name}, ${settings.version}
|
2019-05-23 21:26:31 +00:00
|
|
|
${a.locol}By Starbeamrainbowlabs${a.reset}
|
2019-05-20 11:18:25 +00:00
|
|
|
|
2019-05-23 21:26:31 +00:00
|
|
|
${a.hicol}This program ${settings.description}.${a.reset}
|
2019-05-20 11:18:25 +00:00
|
|
|
|
2019-05-23 21:26:31 +00:00
|
|
|
${a.fblue}${a.hicol}Usage:${a.reset}
|
2019-05-20 11:18:25 +00:00
|
|
|
node --experimental-modules ${path.relative(process.cwd(), process.argv[1])} {subcommand} {options}
|
|
|
|
|
2019-05-23 21:26:31 +00:00
|
|
|
${a.fblue}${a.hicol}Subcommands:${a.reset}
|
|
|
|
${a.fyellow}ttn-app-server${a.reset} Starts the thing network application server
|
2019-07-09 12:12:54 +00:00
|
|
|
${a.fyellow}decode-test${a.reset} Decodes a base64 encoded message
|
2019-05-23 21:26:31 +00:00
|
|
|
${a.fyellow}process-data${a.reset} Consolidates collected data from the IoT device and the TTN app server
|
|
|
|
${a.fyellow}train-ai${a.reset} Trains the AI on the consolidated data
|
2019-05-20 11:18:25 +00:00
|
|
|
|
2019-05-23 21:26:31 +00:00
|
|
|
${a.fblue}${a.hicol}Options:${a.reset}
|
2019-08-05 16:06:31 +00:00
|
|
|
${a.fyellow}-h --help ${a.reset} Show this message
|
|
|
|
${a.fyellow}-v --version ${a.reset} Show the version of this program
|
|
|
|
|
|
|
|
${a.fyellow} --ai-unified${a.reset} Switch to the unified AI training mode. This trains 1 AI for everything, instead of 1 AI per gateway.
|
|
|
|
${a.fyellow} --ai-split${a.reset} Switch to the split AI training mode (the default). This trains 1 AI per gateway.
|
2019-05-20 11:18:25 +00:00
|
|
|
|
2019-05-23 21:26:31 +00:00
|
|
|
${a.fblue}${a.hicol}Environment Variables:${a.reset}
|
2019-05-20 11:18:25 +00:00
|
|
|
(none yet)
|
|
|
|
`);
|
|
|
|
};
|