feat(tee-key-preexec): add cmdline arg for env prefix

- Introduced `clap` for command-line argument parsing.
- Replaced manual argument handling with `clap`'s derived `Args` struct.
- Updated environmental variables to use dynamic prefixes.

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
Harald Hoyer 2024-09-03 10:34:28 +02:00
parent 6b0b0b69ca
commit c94912d832
Signed by: harald
GPG key ID: F519A1143B3FBE32
3 changed files with 33 additions and 16 deletions

1
Cargo.lock generated
View file

@ -4780,6 +4780,7 @@ name = "tee-key-preexec"
version = "0.1.2-alpha.1"
dependencies = [
"anyhow",
"clap",
"rand",
"secp256k1 0.29.0",
"teepot",