cli

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FileStats = cmd.CMD{
	Name:  "file-stats",
	Alias: "fs",
	Short: "Reads all maps and gathers the stats for a single file",
	Args:  &FileStatsArgs{},
	Run:   FileStatsRun,
}

FileStats reads all maps and gathers the stats for a single file

View Source
var RankAllSizes = cmd.CMD{
	Name:  "rank-all-sizes",
	Alias: "ras",
	Short: "Read all maps and sort files by size",
	Args:  &RankAllSizesArgs{},
	Run:   RankAllSizesRun,
}

RankAllSizes reads all maps and sorts files by size

View Source
var RankSizes = cmd.CMD{
	Name:  "rank-sizes",
	Alias: "rs",
	Short: "Read a single map and sort files by size",
	Args:  &RankSizesArgs{},
	Run:   RankSizesRun,
}

RankSizes reads a single map and sorts files by size

View Source
var Root *cmd.RootCMD

Root is the main command for this application

Functions

func FileStatsRun

func FileStatsRun(r *cmd.RootCMD, c *cmd.CMD)

FileStatsRun carries out parsing and then prints out a single file

func RankAllSizesRun

func RankAllSizesRun(r *cmd.RootCMD, c *cmd.CMD)

RankAllSizesRun carries out reading parsing, sorting, and listing

func RankSizesRun

func RankSizesRun(r *cmd.RootCMD, c *cmd.CMD)

RankSizesRun carries out reading parsing, sorting, and listing

Types

type FileStatsArgs

type FileStatsArgs struct {
	Path string `desc:"The full path to the file"`
}

FileStatsArgs contains the arguments for the "FileStats" subcommand

type RankAllSizesArgs

type RankAllSizesArgs struct{}

RankAllSizesArgs contains the arguments for the "RankAllSizes" subcommand

type RankSizesArgs

type RankSizesArgs struct {
	PID string `desc:"The Process ID of the map to scan"`
}

RankSizesArgs contains the arguments for the "RankSizes" subcommand

Jump to

Keyboard shortcuts

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