update to PHP-8.1
[m6w6/seekat] / examples / cli.php
old mode 100644 (file)
new mode 100755 (executable)
index 650ca85..6da8815
@@ -1,10 +1,8 @@
+#!/usr/bin/env php
 <?php
 
-require_once __DIR__."/../vendor/autoload.php";
+$api = include "examples.inc";
 
-$api = new seekat\API([
-       "Authorization" => "token ".getenv("GITHUB_TOKEN")
-]);
 array_shift($argv);
 
 ($self = function($api) use(&$self) {