cli

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP  = "swptop"
	VER  = "1.1.0"
	DESC = "Utility for viewing swap consumption of processes"
)
View Source
const (
	OPT_USER     = "u:user"
	OPT_FILTER   = "f:filter"
	OPT_NO_COLOR = "nc:no-color"
	OPT_HELP     = "h:help"
	OPT_VER      = "v:version"

	OPT_VERB_VER     = "vv:verbose-version"
	OPT_COMPLETION   = "completion"
	OPT_GENERATE_MAN = "generate-man"
)

Variables

This section is empty.

Functions

func Init

func Init(gitRev string, gomod []byte)

Init is main function

Types

type ProcessInfo

type ProcessInfo struct {
	PID     int
	VmSwap  uint64
	User    string
	Command string
}

ProcessInfo contains basic info about process

type ProcessInfoSlice

type ProcessInfoSlice []ProcessInfo

ProcessInfoSlice is ProcessInfo slice

func (ProcessInfoSlice) Len

func (s ProcessInfoSlice) Len() int

func (ProcessInfoSlice) Less

func (s ProcessInfoSlice) Less(i, j int) bool

func (ProcessInfoSlice) Swap

func (s ProcessInfoSlice) Swap(i, j int)

Jump to

Keyboard shortcuts

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