1
0
Fork 0
mirror of https://github.com/nachoparker/dutree synced 2024-04-27 04:05:02 +02:00

update toml metadata

This commit is contained in:
nacho 2018-04-16 23:03:50 +02:00
parent deba1dfcc6
commit 5b5d4f5db9
4 changed files with 48 additions and 39 deletions

8
Cargo.lock generated
View File

@ -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"

View File

@ -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"

View File

@ -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)

View File

@ -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;