Skip to content

Commit

Permalink
Merge branch 'release/1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
BytesZero committed Dec 20, 2021
2 parents d44ce2a + 4524050 commit 0fdba69
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 5 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
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 目录
- 支持帮助说明查看
70 changes: 66 additions & 4 deletions README.md
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).

0 comments on commit 0fdba69

Please sign in to comment.