cmd

package
v0.0.0-...-e90b878 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: GPL-2.0 Imports: 16 Imported by: 0

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

func ArgsOrCWD(args []string) []string

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

func HasHighlights(path string) bool

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

type Browser

type Browser struct {
	// contains filtered or unexported fields
}

func (*Browser) Run

func (b *Browser) Run()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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