Documentation
¶
Overview ¶
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 NAME HERE <EMAIL ADDRESS>
Copyright © 2025 Francesco Orlando orlando@stronzi.org
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArgsOrCWD ¶
ArgsOrCWD returns the provided args slice if non-empty. If args is empty, it returns a slice containing the current working directory.
Example:
ArgsOrCWD([]string{"path1", "file2"}) -> []string{"path1", "file2"}
ArgsOrCWD([]string{}) -> []string{"."}
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func HasHighlights ¶
returns true if file contains at least one highlight or is tagged with "ls" (is ls-able by ghligh)
Types ¶
type Accumulatore ¶
type Accumulatore struct {
// contains filtered or unexported fields
}
func (*Accumulatore) EatRune ¶
func (acc *Accumulatore) EatRune(r rune)
func (*Accumulatore) Goto ¶
func (acc *Accumulatore) Goto(currentPage int) *Accumulatore
func (*Accumulatore) Next ¶
func (acc *Accumulatore) Next() *Accumulatore
func (*Accumulatore) Pop ¶
func (acc *Accumulatore) Pop() int
func (*Accumulatore) Prev ¶
func (acc *Accumulatore) Prev() *Accumulatore
func (*Accumulatore) Value ¶
func (acc *Accumulatore) Value() int