-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from gregl83/feature/13/add-file-out-option
add hash output file option to command
- Loading branch information
Showing
9 changed files
with
358 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,7 @@ Cargo.lock | |
**/*.rs.bk | ||
|
||
# IDE | ||
.idea | ||
.idea | ||
|
||
# Build Files for paq.gif | ||
demo.cast |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "paq" | ||
version = "1.0.1" | ||
version = "1.1.0" | ||
authors = ["Gregory Langlais <[email protected]>"] | ||
edition = "2021" | ||
description = "Hash file or directory recursively." | ||
|
@@ -30,6 +30,9 @@ blake3 = "1.3.1" | |
rayon = "1.5" | ||
clap = { version = "4.3.0", features = ["cargo", "unstable-styles"] } | ||
|
||
[dev-dependencies] | ||
assert_cmd = "2.0.11" | ||
|
||
[features] | ||
default = ["test-cleanup"] | ||
test-cleanup = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
docker run --rm -ti -v .:/opt/paq -e "TERM=xterm-256color" -w /opt/paq rust /bin/bash -c "cargo install --path=. && cargo install --locked --git https://github.com/k9withabone/autocast && cargo install --locked --git https://github.com/asciinema/agg && cargo install --locked --git https://github.com/asciinema/agg && autocast --overwrite demo.yaml demo.cast && agg demo.cast paq.gif" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
settings: | ||
title: paq demo | ||
width: 90 | ||
height: 24 | ||
prompt: "\e[92m\e[1mubuntu\e[0m:\e[94m\e[1m/home/demo\e[0m$ " | ||
environment: | ||
- name: TERM | ||
value: "xterm-256color" | ||
|
||
instructions: | ||
- !Command | ||
command: paq -h | ||
- !Wait 5s | ||
- !Command | ||
command: paq ./example | ||
- !Wait 2s | ||
- !Command | ||
command: cd ./example | ||
- !Command | ||
command: paq | ||
- !Wait 2s | ||
- !Command | ||
command: cd .. | ||
- !Command | ||
command: paq --ignore-hidden ./example | ||
- !Wait 2s | ||
- !Command | ||
command: paq --ignore-hidden -o ./example | ||
- !Wait 1s | ||
- !Command | ||
command: cat example.paq; echo | ||
- !Wait 3s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.