cmd

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Index

Constants

View Source
const UNTITLED = "<UNTITLED>"

Variables

View Source
var HighlightStyle = lipgloss.NewStyle().Background(lipgloss.Color("#D8D7A0")).Foreground(lipgloss.Color("#000000"))
View Source
var Version string = "v0.0.0-dev"

overwrite with: go build -ldflags "-X github.com/iansinnott/browser-gopher/cmd.Version=$(git describe --tags)"

Functions

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 OpenItem

func OpenItem(item list.Item) error

@todo Support other systems that don't have `open` @todo should prob store a list of the `item` structs that have the URL rather than doing this string manipulation

Types

This section is empty.

Jump to

Keyboard shortcuts

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