Skip to content

Commit 54c2060

Browse files
committed
Add sdiff utility
1 parent 9bc5348 commit 54c2060

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use std::{
1414
mod cmp;
1515
mod context_diff;
1616
mod diff;
17+
mod sdiff;
1718
mod ed_diff;
1819
mod macros;
1920
mod normal_diff;
@@ -71,6 +72,7 @@ fn main() -> ExitCode {
7172
match util_name.to_str() {
7273
Some("diff") => diff::main(args),
7374
Some("cmp") => cmp::main(args),
75+
Some("sdiff") => sdiff::main(),
7476
Some(name) => {
7577
eprintln!("{}: utility not supported", name);
7678
ExitCode::from(2)

src/sdiff.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
use std::process::ExitCode;
2+
3+
pub fn main() -> ExitCode {
4+
ExitCode::SUCCESS
5+
}

0 commit comments

Comments
 (0)