homey
Version:
Command-line interface and type declarations for Homey Apps
14 lines (12 loc) • 305 B
JavaScript
import Log from '../../lib/Log.js';
import AthomApi from '../../services/AthomApi.js';
export const desc = 'Log in with an Athom account';
export const handler = async (yargs) => {
try {
await AthomApi.login();
process.exit(0);
} catch (err) {
Log.error(err);
process.exit(1);
}
};