Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zztkm/ztb
zztkm tool box
https://github.com/zztkm/ztb
Last synced: 12 days ago
JSON representation
zztkm tool box
- Host: GitHub
- URL: https://github.com/zztkm/ztb
- Owner: zztkm
- Created: 2024-06-01T12:16:25.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-30T10:55:48.000Z (6 months ago)
- Last Synced: 2024-12-20T23:29:55.724Z (16 days ago)
- Language: Rust
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ztb
zztkm tool box.
Rust の練習がてら Linux コマンドを再実装したり、自分がほしいコマンドを実装したりしています。
## Install
```bash
git clone https://github.com/zztkm/ztb.git
cd ztbcargo install --path .
```## Usage
```bash
# 引数がない場合は標準入力から読み取ります
$ cat README.md | cargo run -- cat at 01:46:25
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.02s
Running `target/debug/ztb cat`
# ztbzztkm tool box.
# 引数ありの場合
$ cargo run -- cat README.md Makefile at 01:48:46
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.01s
Running `target/debug/ztb cat README.md Makefile`
# ztbzztkm tool box.
.PHONY: all
all:
cargo build.PHONY: fmt
fmt:
cargo fmt.PHONY: lint
lint:
cargo clippy
```