mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-02-02 16:07:31 +08:00
Format in small and add copyright
This commit is contained in:
parent
61690ba5a5
commit
8f5423f704
|
@ -1,5 +1,6 @@
|
|||
/** ------------------------------------------------------------
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* Copyright © 2023-2024 Aoran Zeng, Heng Guo
|
||||
* -------------------------------------------------------------
|
||||
* File : chsrc.h
|
||||
* Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
|
@ -254,7 +255,8 @@ test_speed_url (const char *url)
|
|||
|
||||
char *ipv6 = ""; // 默认不启用
|
||||
|
||||
if (Cli_Option_IPv6==true) {
|
||||
if (Cli_Option_IPv6==true)
|
||||
{
|
||||
ipv6 = "--ipv6";
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/** ------------------------------------------------------------
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* Copyright © 2023-2024 Aoran Zeng, Heng Guo
|
||||
* -------------------------------------------------------------
|
||||
* File : source.h
|
||||
* Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/** ------------------------------------------------------------
|
||||
* SPDX-License-Identifier: MIT
|
||||
* Copyright © 2023-2024 Aoran Zeng, Heng Guo
|
||||
* -------------------------------------------------------------
|
||||
* File : xy.h
|
||||
* Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/** ------------------------------------------------------------
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* Copyright © 2023-2024 Aoran Zeng, Heng Guo
|
||||
* -------------------------------------------------------------
|
||||
* File : chsrc.c
|
||||
* Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
|
@ -10,7 +11,7 @@
|
|||
* | BlockLune <blocklune@gmail.com>
|
||||
* |
|
||||
* Created on : <2023-08-28>
|
||||
* Last modified : <2024-07-29>
|
||||
* Last modified : <2024-07-31>
|
||||
*
|
||||
* chsrc: Change Source —— 全平台通用命令行换源工具
|
||||
* ------------------------------------------------------------*/
|
||||
|
@ -134,7 +135,8 @@ pl_python_getsrc (char *option)
|
|||
char *cmd = xy_2strjoin (prog, " -m pip config get global.index-url");
|
||||
chsrc_run (cmd, RunOpt_Default);
|
||||
|
||||
if (pdm_exist) {
|
||||
if (pdm_exist)
|
||||
{
|
||||
cmd = "pdm config --global pypi.url";
|
||||
chsrc_run (cmd, RunOpt_Default);
|
||||
}
|
||||
|
@ -2908,7 +2910,8 @@ main (int argc, char const *argv[])
|
|||
|
||||
target = argv[cli_arg_Target_pos];
|
||||
char *mirrorCode_or_url = NULL;
|
||||
if (argc >= cli_arg_Mirror_pos) {
|
||||
if (argc >= cli_arg_Mirror_pos)
|
||||
{
|
||||
mirrorCode_or_url = xy_strdup (argv[cli_arg_Mirror_pos]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user