chore: 移动 API 密钥提示到顶部
This commit is contained in:
6
setup.sh
6
setup.sh
@@ -170,6 +170,9 @@ show_status() {
|
||||
echo -e "${CYAN} XCodeCLI Setup Launcher${NC}"
|
||||
echo -e "${CYAN}========================================${NC}"
|
||||
echo ""
|
||||
echo -e "获取 API 密钥: ${CYAN}https://api2.xcodecli.com/console/token${NC}"
|
||||
echo -e "步骤: 添加令牌 → 输入令牌名称 → 提交"
|
||||
echo ""
|
||||
echo -e "${YELLOW}工具安装状态:${NC}"
|
||||
echo ""
|
||||
|
||||
@@ -243,9 +246,6 @@ main() {
|
||||
if [[ -z "$api_key" ]]; then
|
||||
echo ""
|
||||
echo -e "${YELLOW}请输入 API 密钥:${NC}"
|
||||
echo -e " 获取地址: ${CYAN}https://api2.xcodecli.com/console/token${NC}"
|
||||
echo -e " 步骤: 添加令牌 → 输入令牌名称 → 提交"
|
||||
echo ""
|
||||
read -r api_key
|
||||
if [[ -z "$api_key" ]]; then
|
||||
error "API 密钥不能为空"
|
||||
|
||||
Reference in New Issue
Block a user