refactor for the new lib structure
This commit is contained in:
@@ -1,17 +1,7 @@
|
||||
<?php
|
||||
require(__DIR__.'/../vendor/autoload.php');
|
||||
|
||||
$config=require(__DIR__.'/config.php');
|
||||
|
||||
//pass cmd line args
|
||||
if($argc<3){
|
||||
die(basename(__FILE__)." <USER> <REPO> [debug]\n");
|
||||
}
|
||||
$debug = ($argc==4 && $argv[3]=='debug');
|
||||
|
||||
//open connection and repo
|
||||
$client=new Client($config['url'],$config['user'],$config['pass'],$debug);
|
||||
$repo=$client->getRepo($argv[1],$argv[2]);
|
||||
// load the config, create the connection and load the repo sepcified on the cmd line args
|
||||
// we will then have $client and $repo available
|
||||
require('setup.php');
|
||||
|
||||
//close all issues
|
||||
$repo->forIssues(function($issue){
|
||||
|
Reference in New Issue
Block a user