Skip to content

Commit 83fee61

Browse files
authored
fix: loady process bar (#9)
* 优化shell log * 删除 QEMU 下载和构建的 GitHub Actions 配置文件 * fix: loady process bar
1 parent c9b3324 commit 83fee61

File tree

11 files changed

+373
-150
lines changed

11 files changed

+373
-150
lines changed

.github/workflows/actions/setup-qemu/action.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Check, Build and Test
22

33
on:
44
push:
5-
branches:
6-
- main
75
pull_request:
86
branches:
97
- main

Cargo.lock

Lines changed: 150 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ostool/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ostool"
3-
version = "0.7.25"
3+
version = "0.7.26"
44
edition = "2024"
55
description = "A tool for operating system development"
66
authors = ["周睿 <zrufo747@outlook.com>"]
@@ -26,3 +26,5 @@ ratatui = "0.29"
2626
crossterm = "0.29"
2727
indicatif = "0.17"
2828
uboot-shell = { version = "0.1.9", path = "../uboot-shell" }
29+
log = "0.4"
30+
env_logger = "0.11"

ostool/src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ struct QemuArgs {
6565
}
6666

6767
fn main() -> Result<()> {
68+
env_logger::builder()
69+
.format_module_path(false)
70+
.filter_level(log::LevelFilter::Info)
71+
.init();
72+
6873
let cli = Cli::parse();
6974
let workdir = cli
7075
.workdir

uboot-shell/Cargo.toml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
[package]
2-
name = "uboot-shell"
3-
version = "0.1.9"
4-
edition = "2024"
5-
description = "A crate for communicating with u-boot"
62
authors = ["周睿 <zrufo747@outlook.com>"]
7-
license = "MIT"
8-
keywords = ["u-boot", "shell", "embedded"]
93
categories = ["os", "embedded", "development-tools"]
4+
description = "A crate for communicating with u-boot"
5+
edition = "2024"
6+
keywords = ["u-boot", "shell", "embedded"]
7+
license = "MIT"
8+
name = "uboot-shell"
109
repository = "https://github.com/ZR233/ostool/ostool"
10+
version = "0.1.10"
1111

1212
[dependencies]
1313
colored = "3"
14+
log = "0.4"
1415

1516
[dev-dependencies]
17+
indicatif = "0.18"
1618
ntest = "0.9"
1719
serialport = "4.6"
18-
indicatif = "0.17"
20+
env_logger = "0.11"

0 commit comments

Comments
 (0)