-
Notifications
You must be signed in to change notification settings - Fork 10
/
espbuddy
executable file
·28 lines (23 loc) · 1.48 KB
/
espbuddy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/php
<?php
/*
--------------------------------------------------------------------------------------------------------------------------------------
EspBuddy - An Upload Toolbox for ESP8266/ESP32 based devices
--------------------------------------------------------------------------------------------------------------------------------------
Copyright (C) 2018 by François Déchery - https://github.com/soif/
EspBuddy is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
EspBuddy is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------------------------------------------------------------------
*/
//error_reporting(E_ALL & ~E_NOTICE); // DEV: Show Warnings
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING); // PROD: Only Fatal errors
$config_file=dirname(__FILE__).'/config.php';
require_once(dirname(__FILE__).'/lib/espbuddy.class.php');
$espbuddy = new EspBuddy();
$espbuddy->LoadConf($config_file);
$espbuddy->CommandLine();
exit(0);
?>