-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
70 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
## 1.0.0 | ||
|
||
- Initial version, created by Stagehand | ||
- 完成第一个版本 | ||
- 支持清理 build 目录 | ||
- 支持清理 ios/Pods 目录 | ||
- 支持帮助说明查看 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,67 @@ | ||
A sample command-line application with an entrypoint in `bin/`, library code | ||
in `lib/`, and example unit test in `test/`. | ||
## cf | ||
|
||
批量清理 Flutter 项目 [build、ios/Pods] 目录,优化电脑空间,顺手练习一下 Dart CLI | ||
|
||
## 运行效果 | ||
|
||
- 清理 `build` | ||
|
||
``` | ||
➜ cf | ||
🚀 清理模式:build | ||
🎉 全部清理完毕 | ||
🙈 隐藏文件夹跳过 | ||
🙈 隐藏文件夹跳过 | ||
🙈 隐藏文件夹跳过 | ||
🙈 隐藏文件夹跳过 | ||
🙈 隐藏文件夹跳过 | ||
``` | ||
|
||
- 清理 `ios/Pods` | ||
|
||
``` | ||
➜ cf -m pods | ||
🚀 清理模式:pods | ||
🎉 全部清理完毕 | ||
🙈 隐藏文件夹跳过 | ||
🙈 隐藏文件夹跳过 | ||
🙈 隐藏文件夹跳过 | ||
🙈 隐藏文件夹跳过 | ||
🙈 隐藏文件夹跳过 | ||
``` | ||
|
||
- 清理 `build` 和 `ios/Pods` | ||
|
||
``` | ||
➜ cf -m all | ||
🚀 清理模式:all | ||
🎉 全部清理完毕 | ||
🙈 隐藏文件夹跳过 | ||
🙈 隐藏文件夹跳过 | ||
🙈 隐藏文件夹跳过 | ||
🙈 隐藏文件夹跳过 | ||
🙈 隐藏文件夹跳过 | ||
``` | ||
|
||
- 版本信息 | ||
|
||
``` | ||
➜ cf -v | ||
🚀 CF Version:1.0.0 | ||
🐦 Dart:2.14.4 (stable) (Wed Oct 13 11:11:32 2021 +0200) on "macos_x64" | ||
🧑💻 OS:10.16 | ||
``` | ||
|
||
- 帮助说明 | ||
|
||
``` | ||
➜ cf -h | ||
-m, --mode 🚀 设置清理模式 build 是 build 文件夹,pods 是 ios/Pods 文件夹, all 全部文件夹 | ||
[build (default), pods, all] | ||
-v, --[no-]version 📦️ 获取版本 | ||
-h, --[no-]help 💡 帮助说明 | ||
``` | ||
|
||
|
||
|
||
|
||
Created from templates made available by Stagehand under a BSD-style | ||
[license](https://github.com/dart-lang/stagehand/blob/master/LICENSE). |