mirror of
https://gitlab.silvrtree.co.uk/martind2000/bluetest.git
synced 2025-02-04 21:00:14 +00:00
30 lines
378 B
JavaScript
30 lines
378 B
JavaScript
|
#!/usr/bin/env node
|
||
|
'use strict';
|
||
|
|
||
|
const meow = require('meow');
|
||
|
const bluetest = require('./index');
|
||
|
|
||
|
const cli = meow({
|
||
|
help: `
|
||
|
Usage
|
||
|
$ bluetest <MAC>
|
||
|
|
||
|
Mac
|
||
|
Mac address of bluetooth device.
|
||
|
|
||
|
`},
|
||
|
{
|
||
|
|
||
|
default: {
|
||
|
mac: process.cwd()
|
||
|
|
||
|
}
|
||
|
});
|
||
|
|
||
|
|
||
|
const options = {
|
||
|
mac:cli.input[0]
|
||
|
};
|
||
|
|
||
|
bluetest(options);
|