feat(cli): add libpt-cli and reexport essential cli deps
cargo devel CI / cargo CI (push) Has been cancelled Details

This commit is contained in:
Christoph J. Scherr 2024-06-27 21:27:18 +02:00
parent 940b5ffa1a
commit 5e72ff3fa6
4 changed files with 30 additions and 0 deletions

View File

@ -5,6 +5,7 @@ members = [
"members/libpt-core",
"members/libpt-log",
"members/libpt-py",
"members/libpt-cli",
]
default-members = [".", "members/libpt-core"]
@ -31,6 +32,7 @@ thiserror = "1.0.56"
libpt-core = { version = "0.4.0", path = "members/libpt-core" }
libpt-bintols = { version = "0.5.1", path = "members/libpt-bintols" }
libpt-log = { version = "0.4.2", path = "members/libpt-log" }
libpt-cli = { version = "0.1.0", path = "members/libpt-cli" }
[package]
name = "libpt"
@ -52,6 +54,7 @@ core = []
full = ["default", "core", "log", "bintols"]
log = ["dep:libpt-log"]
bintols = ["dep:libpt-bintols", "log"]
cli = ["dep:libpt-cli", "core"]
# py = ["dep:libpt-py"]
[lib]
@ -66,3 +69,4 @@ crate-type = [
libpt-core = { workspace = true }
libpt-bintols = { workspace = true, optional = true }
libpt-log = { workspace = true, optional = true }
libpt-cli = { workspace = true, optional = true }

View File

@ -0,0 +1,20 @@
[package]
name = "libpt-cli"
publish.workspace = true
version = "0.1.0"
edition.workspace = true
authors.workspace = true
license.workspace = true
description.workspace = true
readme.workspace = true
homepage.workspace = true
repository.workspace = true
keywords.workspace = true
categories.workspace = true
[dependencies]
clap = "4.5.7"
comfy-table = "7.1.1"
console = "0.15.8"
dialoguer = "0.11.0"
indicatif = "0.17.8"

View File

@ -0,0 +1,6 @@
pub mod repl;
pub use indicatif;
pub use console;
pub use dialoguer;
pub use comfy_table;

View File