class PCITCommand

Methods

static void
check(string $endpoints_url, string $git_type)

No description

static 
getConfigFileName()

No description

static 
getGitTypeOptionArray()

No description

static 
getRepoOptionArray()

No description

static 
getAPIEndpointOptionArray()

No description

static 
getRawOptionArray()

No description

static bool
configExists()

No description

static mixed
getToken(InputInterface $input, bool $header = true)

No description

static mixed
HttpGet(InputInterface $input, string $entrypoint, string|null $data, bool $auth = false, int $target_code = 200)

No description

static mixed
HttpPost(InputInterface $input, string $entrypoint, string|null $data, bool $auth = false, bool $json = false, int $target_code = 200)

No description

static mixed
HttpDelete(InputInterface $input, string $entrypoint, string|null $data, bool $auth = false, int $target_code = 200)

No description

static mixed
HttpPatch(InputInterface $input, string $entrypoint, string|null $data, bool $auth = false, bool $json = false, int $target_code = 200)

No description

static bool|mixed|string
getGitByExecCommand()

通过调用系统 git 命令获取仓库名称 -r.

static mixed
existsRepoOption(InputInterface $input)

No description

Details

at line 16
static void check(string $endpoints_url, string $git_type)

Parameters

string $endpoints_url
string $git_type

Return Value

void

at line 20
static getConfigFileName()

at line 37
static getGitTypeOptionArray()

at line 47
static getRepoOptionArray()

at line 57
static getAPIEndpointOptionArray()

at line 68
static getRawOptionArray()

at line 81
static bool configExists()

Return Value

bool

at line 91
static mixed getToken(InputInterface $input, bool $header = true)

Parameters

InputInterface $input
bool $header

Return Value

mixed

Exceptions

Exception

at line 136
static mixed HttpGet(InputInterface $input, string $entrypoint, string|null $data, bool $auth = false, int $target_code = 200)

Parameters

InputInterface $input
string $entrypoint
string|null $data
bool $auth
int $target_code

Return Value

mixed

Exceptions

Exception

at line 166
static mixed HttpPost(InputInterface $input, string $entrypoint, string|null $data, bool $auth = false, bool $json = false, int $target_code = 200)

Parameters

InputInterface $input
string $entrypoint
string|null $data
bool $auth
bool $json
int $target_code

Return Value

mixed

Exceptions

Exception

at line 196
static mixed HttpDelete(InputInterface $input, string $entrypoint, string|null $data, bool $auth = false, int $target_code = 200)

Parameters

InputInterface $input
string $entrypoint
string|null $data
bool $auth
int $target_code

Return Value

mixed

Exceptions

Exception

at line 224
static mixed HttpPatch(InputInterface $input, string $entrypoint, string|null $data, bool $auth = false, bool $json = false, int $target_code = 200)

Parameters

InputInterface $input
string $entrypoint
string|null $data
bool $auth
bool $json
int $target_code

Return Value

mixed

Exceptions

Exception

at line 254
static bool|mixed|string getGitByExecCommand()

通过调用系统 git 命令获取仓库名称 -r.

Return Value

bool|mixed|string

at line 285
static mixed existsRepoOption(InputInterface $input)

Parameters

InputInterface $input

Return Value

mixed

Exceptions

Exception