rename filetree crate to prepare for publish

This commit is contained in:
Stephan Dilly 2021-05-28 11:10:11 +02:00
parent bfa83ae343
commit 032948f01a
15 changed files with 13 additions and 13 deletions

4
Cargo.lock generated
View File

@ -373,7 +373,7 @@ dependencies = [
] ]
[[package]] [[package]]
name = "filetree" name = "filetreelist"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"pretty_assertions", "pretty_assertions",
@ -478,7 +478,7 @@ dependencies = [
"crossterm", "crossterm",
"dirs-next", "dirs-next",
"easy-cast", "easy-cast",
"filetree", "filetreelist",
"itertools", "itertools",
"lazy_static", "lazy_static",
"log", "log",

View File

@ -21,7 +21,7 @@ keywords = [
[dependencies] [dependencies]
scopetime = { path = "./scopetime", version = "0.1" } scopetime = { path = "./scopetime", version = "0.1" }
asyncgit = { path = "./asyncgit", version = "0.16" } asyncgit = { path = "./asyncgit", version = "0.16" }
filetree = { path = "./filetree" } filetreelist = { path = "./filetreelist", version = "0.1" }
crossterm = { version = "0.19", features = [ "serde" ] } crossterm = { version = "0.19", features = [ "serde" ] }
clap = { version = "2.33", default-features = false } clap = { version = "2.33", default-features = false }
tui = { version = "0.15", default-features = false, features = ['crossterm', 'serde'] } tui = { version = "0.15", default-features = false, features = ['crossterm', 'serde'] }
@ -66,7 +66,7 @@ timing=["scopetime/enabled"]
members=[ members=[
"asyncgit", "asyncgit",
"scopetime", "scopetime",
"filetree", "filetreelist",
] ]
[profile.release] [profile.release]

View File

@ -45,12 +45,12 @@ fmt:
clippy: clippy:
touch src/main.rs touch src/main.rs
cargo clean -p gitui -p asyncgit -p scopetime -p filetree cargo clean -p gitui -p asyncgit -p scopetime -p filetreelist
cargo clippy --workspace --all-features cargo clippy --workspace --all-features
clippy-nightly: clippy-nightly:
touch src/main.rs touch src/main.rs
cargo clean -p gitui -p asyncgit -p scopetime -p filetree cargo clean -p gitui -p asyncgit -p scopetime -p filetreelist
cargo +nightly clippy --workspace --all-features cargo +nightly clippy --workspace --all-features
check: fmt clippy test check: fmt clippy test

View File

@ -1,15 +1,15 @@
[package] [package]
name = "filetree" name = "filetreelist"
version = "0.1.0" version = "0.1.0"
authors = ["Stephan Dilly <dilly.stephan@gmail.com>"] authors = ["Stephan Dilly <dilly.stephan@gmail.com>"]
edition = "2018" edition = "2018"
description = "filetree abstraction based on a sorted path list" description = "filetree abstraction based on a sorted path list, supports key based navigation events, folding, scrolling and more"
homepage = "https://github.com/extrawurst/gitui" homepage = "https://github.com/extrawurst/gitui"
repository = "https://github.com/extrawurst/gitui" repository = "https://github.com/extrawurst/gitui"
readme = "README.md" readme = "README.md"
license-file = "LICENSE.md" license-file = "LICENSE.md"
categories = ["command-line-utilities"] categories = ["command-line-utilities"]
keywords = ["gui","cli","terminal","ui"] keywords = ["gui","cli","terminal","ui","tui"]
[dependencies] [dependencies]
thiserror = "1.0" thiserror = "1.0"

View File

@ -15,7 +15,7 @@ use asyncgit::{
}; };
use crossbeam_channel::Sender; use crossbeam_channel::Sender;
use crossterm::event::Event; use crossterm::event::Event;
use filetree::FileTree; use filetreelist::{FileTree, FileTreeItem};
use std::{ use std::{
cell::Cell, collections::BTreeSet, convert::From, path::Path, cell::Cell, collections::BTreeSet, convert::From, path::Path,
}; };
@ -104,7 +104,7 @@ impl RevisionFilesComponent {
} }
fn tree_item_to_span<'a>( fn tree_item_to_span<'a>(
item: &'a filetree::FileTreeItem, item: &'a FileTreeItem,
theme: &SharedTheme, theme: &SharedTheme,
selected: bool, selected: bool,
) -> Span<'a> { ) -> Span<'a> {

View File

@ -18,7 +18,7 @@ use asyncgit::{
}; };
use crossbeam_channel::Sender; use crossbeam_channel::Sender;
use crossterm::event::Event; use crossterm::event::Event;
use filetree::MoveSelection; use filetreelist::MoveSelection;
use itertools::Either; use itertools::Either;
use std::{cell::Cell, convert::From, path::Path}; use std::{cell::Cell, convert::From, path::Path};
use tui::{ use tui::{

View File

@ -5,7 +5,7 @@ mod stateful_paragraph;
pub mod style; pub mod style;
mod syntax_text; mod syntax_text;
use filetree::MoveSelection; use filetreelist::MoveSelection;
pub use scrollbar::draw_scrollbar; pub use scrollbar::draw_scrollbar;
pub use scrolllist::{draw_list, draw_list_block}; pub use scrolllist::{draw_list, draw_list_block};
pub use stateful_paragraph::{ pub use stateful_paragraph::{