plots-left

command module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

README

plots-left

Release CI License GO

count

Tiny CLI tool to find out how many chia plots will still fit on your hard disk. In other words to say: How many chia plots do I have left on my hard disk. The tool will work fine on all unix based systems (unix, linux, macos)

Getting started

Pre-Built Binaries

Pre-built binaries can be found on the release page. They are available for the following platforms:

  • darwin-amd64 (64 Bit MacOS)
  • linux-amd64 (64 Bit Linux)
  • linux-arm64 (64Bit Linux for ARM)
Building from Source
Pre-requisites
  • Linux, MacOS or other Unix based System
  • git installed
  • go 1.16 installed
Build

Clone the repository

git clone https://github.com/St3ffn/plots-left.git
cd plots-left

Build the binary

go build

Now you are ready to go.

Usage
# find out how many chia plots will still fit on /path/to/plots
> plots-left /path/to/plots

To specify the amount of plots to reserve use --reserve or -r

# find out how many chia plots will still fit on /path/to/plots
# reserve 1 chia plot
> plots-left -r 1 /path/to/plots

To get more details use the verbose mode via --verbose or -v

# find out how many chia plots will still fit on /path/to/plots
# reserve 1 chia plot
# verbose mode
> plots-left -r 1 -v /path/to/plots

Path       Total Stored Reserved Left
/plots/one 110   109    1        0

To get the current version use --version or -V

> plots-left -V

plots-left version x.x.x

Call with --help or -h to see the help page

> plots-left -h

NAME:
   plots-left - find out how many plots will still fit on your hard disk

USAGE:
   plots-left [-r RESERVE] [-v] PATH
   plots-left -v -r 1 /plots/nas1

VERSION:
   0.3.0

DESCRIPTION:
   Tool will perform the following calculation (AVAILABLE_DISK_SPACE/SINGLE_PLOT_SIZE)-RESERVED_PLOTS.

GLOBAL OPTIONS:
   --reserve RESERVE, -r RESERVE  RESERVE. the amount of plots to reserve. (default: 0)
   --verbose, -v                  enable verbose mode. (default: false)
   --help, -h                     show help (default: false)
   --version, -V                  print version (default: false)

COPYRIGHT:
   GNU GPLv3

Kind gestures

If you like the tool, and you are open for a kind gesture. Thanks in advance.

  • XCH Address: xch18s8r9v4kpwdx2y8jks5ma4g2rmff0h9dtr5nkc6zmnk5kj6v0faqer6k9v

Documentation

Overview

cli tool to find out how many plots will still fit on your hard disk

Directories

Path Synopsis
internal
cli
Package cli contains the command line interface, defines related parameters and validates them
Package cli contains the command line interface, defines related parameters and validates them
printer
Package printer contains functionality to write output
Package printer contains functionality to write output
pkg
disk
Package disk contains disk and plot related operations
Package disk contains disk and plot related operations

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL