/**
  * @param Arguments $arguments
  */
 private function determineIfWeAreVerbose(Arguments $arguments)
 {
     $this->beVerbose = $arguments->hasFlag('verbose') || $arguments->hasFlag('v');
 }
Exemplo n.º 2
0
<?php

/**
 * @author stev leibelt <*****@*****.**>
 * @since 2015-09-12
 */
require_once __DIR__ . '/../vendor/autoload.php';
use Net\Bazzline\Component\Cli\Arguments\Arguments;
use Net\Bazzline\Component\CommandCollection\Http\Curl;
//begin of dependencies
$arguments = new Arguments($argv);
$baseUrl = '/unique-number-repository';
$command = new Curl();
$filePath = __DIR__ . '/../configuration/client.local.php';
$token = '';
$values = $arguments->getValues();
if (file_exists($filePath)) {
    require_once $filePath;
}
//end of dependencies
//begin of configuration
$command->addHeader('Authorization: ' . $token);
$command->isJson();
$command->beSilent();
$command->noSslSecurity();
//end of configuration
/**
 * @param callable $callable
 * @param string $usage
 */
function execute($callable, $usage)