Move cli
into module rather than workspace member
This commit is contained in:
parent
e1f7fbe4fe
commit
026e8599a5
8
Cargo.lock
generated
8
Cargo.lock
generated
@ -150,13 +150,6 @@ dependencies = [
|
|||||||
"roff",
|
"roff",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "cli"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"clap",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "codespan-reporting"
|
name = "codespan-reporting"
|
||||||
version = "0.11.1"
|
version = "0.11.1"
|
||||||
@ -542,7 +535,6 @@ version = "0.1.0"
|
|||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"clap",
|
"clap",
|
||||||
"cli",
|
|
||||||
"deku",
|
"deku",
|
||||||
"package-bootstrap",
|
"package-bootstrap",
|
||||||
"rayon",
|
"rayon",
|
||||||
|
@ -7,7 +7,7 @@ license = "GPL-3.0-only"
|
|||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
members = [ "cli", "tar" ]
|
members = [ "tar" ]
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "hpk"
|
name = "hpk"
|
||||||
@ -19,12 +19,10 @@ path = "src/bootstrap.rs"
|
|||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
clap = "4.1"
|
clap = "4.1"
|
||||||
cli = { path = "cli" }
|
|
||||||
deku = "0.16"
|
deku = "0.16"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap.workspace = true
|
clap.workspace = true
|
||||||
cli.workspace = true
|
|
||||||
deku.workspace = true
|
deku.workspace = true
|
||||||
rayon = "1.7"
|
rayon = "1.7"
|
||||||
ron = "0.8"
|
ron = "0.8"
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
[package]
|
|
||||||
name = "cli"
|
|
||||||
version = "0.1.0"
|
|
||||||
edition = "2021"
|
|
||||||
license = "GPL-3.0-only"
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
clap = { workspace = true }
|
|
@ -1,5 +1,6 @@
|
|||||||
use {
|
use {
|
||||||
clap::{Arg, Command},
|
clap::{Arg, Command},
|
||||||
|
hpk::cli,
|
||||||
package_bootstrap::Bootstrap,
|
package_bootstrap::Bootstrap,
|
||||||
std::{error::Error, path::PathBuf},
|
std::{error::Error, path::PathBuf},
|
||||||
};
|
};
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
use std::{fs, path::PathBuf};
|
|
||||||
|
|
||||||
use {
|
use {
|
||||||
crate::{Entry, Item, Package, Plist, Specs},
|
crate::{Entry, Item, Package, Plist, Specs},
|
||||||
rayon::prelude::{IntoParallelRefIterator, ParallelIterator},
|
rayon::prelude::{IntoParallelRefIterator, ParallelIterator},
|
||||||
@ -7,9 +5,9 @@ use {
|
|||||||
borrow::BorrowMut,
|
borrow::BorrowMut,
|
||||||
env,
|
env,
|
||||||
error::Error,
|
error::Error,
|
||||||
fs::File,
|
fs::{File, self},
|
||||||
io::{self, Write},
|
io::{self, Write},
|
||||||
path::Path,
|
path::{Path, PathBuf},
|
||||||
sync::{
|
sync::{
|
||||||
atomic::{AtomicUsize, Ordering},
|
atomic::{AtomicUsize, Ordering},
|
||||||
mpsc::Sender,
|
mpsc::Sender,
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
use std::io;
|
|
||||||
|
|
||||||
use {
|
use {
|
||||||
clap::ArgMatches,
|
clap::ArgMatches,
|
||||||
cli::cli,
|
hpk::{cli::cli, Creator, Dependency, Message, Specs, Version},
|
||||||
hpk::{Creator, Dependency, Message, Specs, Version},
|
|
||||||
ron::ser::{to_writer_pretty, PrettyConfig},
|
ron::ser::{to_writer_pretty, PrettyConfig},
|
||||||
std::{env, error::Error, fs::File, io::BufWriter, path::PathBuf, sync::mpsc},
|
std::{env, error::Error, fs::File, io::{BufWriter, self}, path::PathBuf, sync::mpsc},
|
||||||
};
|
};
|
||||||
|
|
||||||
fn main() -> Result<(), Box<dyn Error>> {
|
fn main() -> Result<(), Box<dyn Error>> {
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#![warn(clippy::all, clippy::pedantic)]
|
#![warn(clippy::all, clippy::pedantic)]
|
||||||
|
pub mod cli;
|
||||||
mod creator;
|
mod creator;
|
||||||
mod db;
|
mod db;
|
||||||
mod hooks;
|
mod hooks;
|
||||||
|
Loading…
Reference in New Issue
Block a user