Skip to content

Commit 31f6791

Browse files
authored
Merge pull request #418 from dezgeg/add_tool
hexdump: Add tool
2 parents 5e1eced + 5283e85 commit 31f6791

File tree

8 files changed

+825
-0
lines changed

8 files changed

+825
-0
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ feat_common_core = [
3232
"ctrlaltdel",
3333
"dmesg",
3434
"fsfreeze",
35+
"hexdump",
3536
"last",
3637
"lscpu",
3738
"lsipc",
@@ -99,6 +100,7 @@ chcpu = { optional = true, version = "0.0.1", package = "uu_chcpu", path = "src/
99100
ctrlaltdel = { optional = true, version = "0.0.1", package = "uu_ctrlaltdel", path = "src/uu/ctrlaltdel" }
100101
dmesg = { optional = true, version = "0.0.1", package = "uu_dmesg", path = "src/uu/dmesg" }
101102
fsfreeze = { optional = true, version = "0.0.1", package = "uu_fsfreeze", path = "src/uu/fsfreeze" }
103+
hexdump = { optional = true, version = "0.0.1", package = "uu_hexdump", path = "src/uu/hexdump" }
102104
last = { optional = true, version = "0.0.1", package = "uu_last", path = "src/uu/last" }
103105
lscpu = { optional = true, version = "0.0.1", package = "uu_lscpu", path = "src/uu/lscpu" }
104106
lsipc = { optional = true, version = "0.0.1", package = "uu_lsipc", path = "src/uu/lsipc" }

src/uu/hexdump/Cargo.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[package]
2+
name = "uu_hexdump"
3+
version = "0.0.1"
4+
edition = "2021"
5+
description = "hexdump ~ display file contents in hexadecimal, decimal, octal, or ascii"
6+
7+
[lib]
8+
path = "src/hexdump.rs"
9+
10+
[[bin]]
11+
name = "hexdump"
12+
path = "src/main.rs"
13+
14+
[dependencies]
15+
clap = { workspace = true }
16+
uucore = { workspace = true, features = ["parser"] }

src/uu/hexdump/hexdump.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# hexdump
2+
3+
```
4+
hexdump [options] <file>...
5+
```
6+
7+
Display file contents in hexadecimal, decimal, octal, or ascii

0 commit comments

Comments
 (0)