clear-flutter-env

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

清除 Flutter 环境变量 (macOS)

Clear Flutter Environment Variables (macOS)

概述

Overview

此技能允许用户在 macOS 平台上快速清除
FLUTTER_STORAGE_BASE_URL
PUB_HOSTED_URL
两个环境变量。这在切换 Flutter 镜像源或重置开发环境时非常有用。
This skill allows users to quickly clear the two environment variables
FLUTTER_STORAGE_BASE_URL
and
PUB_HOSTED_URL
on the macOS platform. This is very useful when switching Flutter mirror sources or resetting the development environment.

核心任务

Core Tasks

清除环境变量

Clear Environment Variables

用户可以直接请求清除 Flutter 相关的环境变量。该操作将执行以下命令:
bash
unset FLUTTER_STORAGE_BASE_URL
unset PUB_HOSTED_URL
Users can directly request to clear Flutter-related environment variables. This operation will execute the following commands:
bash
unset FLUTTER_STORAGE_BASE_URL
unset PUB_HOSTED_URL

资源

Resources

scripts/

scripts/

  • clear_flutter_env.sh
    : 执行
    unset
    命令的 Shell 脚本。
  • clear_flutter_env.sh
    : Shell script that executes the
    unset
    commands.

如何使用

How to Use

  1. 直接执行: 告知用户执行以下命令:
    bash
    unset FLUTTER_STORAGE_BASE_URL
    unset PUB_HOSTED_URL
  2. 运行脚本: 如果需要,可以运行提供的脚本:
    ./scripts/clear_flutter_env.sh
  1. Direct Execution: Instruct users to run the following commands:
    bash
    unset FLUTTER_STORAGE_BASE_URL
    unset PUB_HOSTED_URL
  2. Run the Script: If needed, you can run the provided script:
    ./scripts/clear_flutter_env.sh