-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use local binaries for both php and phpunit and simpler local config …
…management
- Loading branch information
1 parent
4e0dbee
commit 8932623
Showing
4 changed files
with
22 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
$user_id = null; | ||
$api_key = null; | ||
|
||
@include 'local_config.php'; | ||
|
||
if (!function_exists('readline')) { | ||
function readline($prompt = '') | ||
{ | ||
echo $prompt; | ||
return rtrim(fgets(STDIN), "\n"); | ||
} | ||
} | ||
|
||
if (!$user_id) $user_id = readline('User Id: '); | ||
if (!$api_key) $api_key = readline('API Key: '); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters