Skip to content

Commit 4a2e723

Browse files
committed
samfileparser update
1 parent c8b355c commit 4a2e723

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

.samengine/samfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
-- Comment
44

55
build:
6-
echo Hello
6+
run echo Hello
77

crates/samfileparser/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/samfileparser/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[package]
44
name = "samfileparser"
5-
version = "0.1.1"
5+
version = "0.1.2"
66
edition = "2024"
77
authors = ["Shadowdara"]
88
readme = "README.md"

crates/samfileparser/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ pub fn validate_all(tasks: &Tasks) {
182182
fn parse_line(line: &str) -> Option<Command> {
183183
let line = line.trim();
184184

185-
if line.starts_with("cd ") {
185+
if line.starts_with("cd ") || line.starts_with("CD ") {
186186
return Some(Command::Cd(line[3..].to_string()));
187187
}
188188

189-
if line.starts_with("run ") {
189+
if line.starts_with("run ") || line.starts_with("RUN ") {
190190
let cmd = line[4..].trim();
191191

192192
if cmd.is_empty() {
@@ -196,7 +196,7 @@ fn parse_line(line: &str) -> Option<Command> {
196196
return Some(Command::Run(cmd.to_string()));
197197
}
198198

199-
if line.starts_with("env ") {
199+
if line.starts_with("env ") || line.starts_with("ENV ") {
200200
// env KEY=VALUE
201201
let rest = &line[4..];
202202
let parts: Vec<&str> = rest.split('=').collect();
@@ -355,7 +355,7 @@ pub fn run_task(
355355
run_task(tasks, dep, visited, &mut local_state);
356356
}
357357

358-
println!("\n==> running task: {}\n", name);
358+
println!("\n==> {}running task{}: {}\n", GREEN, END, name);
359359

360360
// 2. run commands
361361
for cmd in &task.commands {

crates/samtool/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repository = "https://github.com/shadowdara/samengine"
1313

1414
[dependencies]
1515
fluaterm = "0.2.2"
16-
samfileparser = "0.1.0"
16+
samfileparser = "0.1.2"
1717
serde = { version = "1", features = ["derive"] }
1818
serde_json = "1"
1919
# sx = { path = "../sx" }

0 commit comments

Comments
 (0)