cmd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 36 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cmd implements the compactfs command-line entry point.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigPath

func DefaultConfigPath() (string, error)

DefaultConfigPath is the zero-configuration config location used by every command. It follows the current user's home directory and does not depend on the process working directory.

func Main

func Main(args []string) error

Main runs the compactfs CLI and returns an error suitable for printing by the root main package. The command parser is github.com/lfhy/flag so config file, environment and command-line values follow one consistent precedence rule.

func ParseBytes

func ParseBytes(value string) (int64, error)

ParseBytes accepts plain bytes and binary units such as MiB/GiB. Decimal units are accepted too, which keeps shell scripts compatible with common quota conventions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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