summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornacho <nacho.nunez@aoifes.com>2018-04-16 23:03:50 +0200
committernacho <nacho.nunez@aoifes.com>2018-04-17 00:48:54 +0200
commit5b5d4f5db9f622a84f5b221038af3b608f414588 (patch)
tree6c3f2b0c5eb6fe0971668d234dbbb4c42e3eb0dc
parentdeba1dfcc6b4e9c5f5436cdd9d45925ca18101ee (diff)
update toml metadata
-rw-r--r--Cargo.lock8
-rw-r--r--Cargo.toml10
-rw-r--r--README.md2
-rw-r--r--src/lib.rs67
4 files changed, 48 insertions, 39 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 773754a..0c9969e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -13,12 +13,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "dutree"
-version = "0.2.0"
+version = "0.2.1"
dependencies = [
"dict 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"getopts 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)",
"regex 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)",
- "terminal_size 0.1.7 (git+https://github.com/eminence/terminal-size.git)",
+ "terminal_size 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)",
"unicode-width 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
]
@@ -77,7 +77,7 @@ dependencies = [
[[package]]
name = "terminal_size"
version = "0.1.7"
-source = "git+https://github.com/eminence/terminal-size.git#af31d2b028a2e0bad3443a84d543b5b7194409e7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.39 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -141,7 +141,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
"checksum memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "796fba70e76612589ed2ce7f45282f5af869e0fdd7cc6199fa1aa1f1d591ba9d"
"checksum regex 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)" = "aec3f58d903a7d2a9dc2bf0e41a746f4530e0cab6b615494e058f67a3ef947fb"
"checksum regex-syntax 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "b2550876c31dc914696a6c2e01cbce8afba79a93c8ae979d2fe051c0230b3756"
-"checksum terminal_size 0.1.7 (git+https://github.com/eminence/terminal-size.git)" = "<none>"
+"checksum terminal_size 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "ef4f7fdb2a063032d361d9a72539380900bc3e0cd9ffc9ca8b677f8c855bae0f"
"checksum thread_local 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "279ef31c19ededf577bfd12dfae728040a21f635b06a24cd670ff510edd38963"
"checksum ucd-util 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "fd2be2d6639d0f8fe6cdda291ad456e23629558d466e2789d2c3e9892bda285d"
"checksum unicode-width 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "bf3a113775714a22dcb774d8ea3655c53a32debae63a063acc00a91cc586245f"
diff --git a/Cargo.toml b/Cargo.toml
index 9e61c15..b48b7ae 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,11 +1,17 @@
[package]
name = "dutree"
-version = "0.2.1"
+version = "0.2.3"
authors = ["nacho <nacho@ownyourbits.com>"]
+description = "Command line tool to analyze disk usage"
+repository = "https://github.com/nachoparker/dutree"
+categories = ["command-line-utilities"]
+license = "GPL-3.0"
+homepage = "https://ownyourbits.com/2018/03/25/analize-disk-usage-with-dutree/"
+exclude = ["test/*"]
[dependencies]
dict = "0.1.1"
getopts = "0.2"
-terminal_size= { git = "https://github.com/eminence/terminal-size.git" }
+terminal_size = "0.1.7"
regex = "0.2"
unicode-width = "0.1.1"
diff --git a/README.md b/README.md
index d61b911..6cb2d6a 100644
--- a/README.md
+++ b/README.md
@@ -35,7 +35,7 @@ Options:
# Installation
```
-cargo install --git https://github.com/nachoparker/dutree.git
+cargo install dutree
```
More details at [ownyourbits.com](https://ownyourbits.com/2018/03/25/analize-disk-usage-with-dutree)
diff --git a/src/lib.rs b/src/lib.rs
index e980a99..5263d01 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,35 +1,38 @@
-///
-/// - dutree lib -
-///
-/// Simple command to analyse disk usage from the terminal
-///
-/// Usage:
-/// btrfs-sync [options] <src> [<src>...] [[user@]host:]<dir>
-///
-/// -k|--keep NUM keep only last <NUM> sync'ed snapshots
-/// -d|--delete delete snapshots in <dst> that don't exist in <src>
-/// -z|--xz use xz compression. Saves bandwidth, but uses one CPU
-/// -Z|--pbzip2 use pbzip2 compression. Saves bandwidth, but uses all CPUs
-/// -q|--quiet don't display progress
-/// -v|--verbose display more information
-/// -h|--help show usage
-///
-/// <src> can either be a single snapshot, or a folder containing snapshots
-/// <user> requires privileged permissions at <host> for the 'btrfs' command
-///
-/// Cron example: daily synchronization over the internet, keep only last 50
-///
-/// cat > /etc/cron.daily/btrfs-sync <<EOF
-/// #!/bin/bash
-/// /usr/local/sbin/btrfs-sync -q -k50 -z /home user@host:/path/to/snaps
-/// EOF
-/// chmod +x /etc/cron.daily/btrfs-sync
-///
-/// Copyleft 2018 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
-/// GPL licensed (see end of file) * Use at your own risk!
-///
-/// More at https://ownyourbits.com
-///
+//!
+//! Simple command line tool to analyse disk usage from the terminal
+//!
+//! # Usage
+//!
+//! ```text
+//! $ dutree --help
+//! Usage: dutree [options] <path> [<path>..]
+//!
+//! Options:
+//! -d, --depth [DEPTH] show directories up to depth N (def 1)
+//! -a, --aggr [N[KMG]] aggregate smaller than N B/KiB/MiB/GiB (def 1M)
+//! -s, --summary equivalent to -da, or -d1 -a1M
+//! -u, --usage report real disk usage instead of file size
+//! -b, --bytes print sizes in bytes
+//! -x, --exclude NAME exclude matching files or directories
+//! -H, --no-hidden exclude hidden files
+//! -A, --ascii ASCII characters only, no colors
+//! -h, --help show help
+//! -v, --version print version number
+//! ```
+//! # Screenshot
+//!
+//! ![dutree](https://ownyourbits.com/wp-content/uploads/2018/03/dutree-featured2.png)
+//!
+//! # More information
+//!
+//! Copyleft 2018 by Ignacio Nunez Hernanz - nacho _at_ ownyourbits _dot_ com
+//!
+//! GPL licensed
+//!
+//! More at [ownyourbits.com](https://ownyourbits.com/2018/03/25/analize-disk-usage-with-dutree)
+//!
+//! [github](https://github.com/nachoparker/dutree)
+//!
extern crate unicode_width;