stoic

package
v0.0.0-...-44d782f Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertBytesToSizeString

func ConvertBytesToSizeString(size int64) string

ConvertBytesToSizeString converts a byte count to a human readable string.

func OpenFileInEditor

func OpenFileInEditor(filepath string, ctx stoic.Context) error

Types

type AboutCommand

type AboutCommand interface {
	Run()
}

func NewAboutCommand

func NewAboutCommand(version, commitHash, date string) AboutCommand

type EditCommand

type EditCommand interface {
	Run()
	Date() time.Time
}

func NewEditCommand

func NewEditCommand(ctx stoic.Context, value string) EditCommand

type ListCommand

type ListCommand interface {
	Run()
}

func NewListCommand

func NewListCommand(ctx stoic.Context) ListCommand

type QuoteCommand

type QuoteCommand interface {
	Run()
}

func NewQuoteCommand

func NewQuoteCommand() QuoteCommand

Jump to

Keyboard shortcuts

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