PCITCommand
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)
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()
at line 91
static mixed
getToken(InputInterface $input, bool $header = true)
at line 136
static mixed
HttpGet(InputInterface $input, string $entrypoint, string|null $data, bool $auth = false, int $target_code = 200)
at line 166
static mixed
HttpPost(InputInterface $input, string $entrypoint, string|null $data, bool $auth = false, bool $json = false, int $target_code = 200)
at line 196
static mixed
HttpDelete(InputInterface $input, string $entrypoint, string|null $data, bool $auth = false, int $target_code = 200)
at line 224
static mixed
HttpPatch(InputInterface $input, string $entrypoint, string|null $data, bool $auth = false, bool $json = false, int $target_code = 200)
at line 254
static bool|mixed|string
getGitByExecCommand()
通过调用系统 git 命令获取仓库名称 -r.