options

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(opts Options) map[string]interface{}

Parse - Converts flags to string -> interface{} map

Types

type Options

type Options struct {
	All  bool   `short:"a" long:"all" description:"Include directory entries whose names begin with a dot (.)"`
	Long bool   `short:"l" long:"long" description:"List in long format"`
	Icon bool   `short:"i" long:"icon" description:"Display nerd-font icons"`
	Sort string `short:"S" long:"sort" description:"Sort files by size or type"`
}

Options - Parsed input flags schema

Jump to

Keyboard shortcuts

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