common

package module
v0.0.0-...-5591a66 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 2 Imported by: 0

README

yts

Search YouTube from the command line without relying on the YouTube API. yts includes two binaries, yts (a one-shot CLI for running a YouTube search) and iyts (an interactive line-mode interface inspired by gmnlm).

Building

yts requires Go to build.

git clone https://git.sr.ht/~gjabell/yts && cd yts
go install ./...

Usage

$ yts -h
Usage: yts [-d] [-h] [-q] [-n] [-p page] search...

  -d  Print additional debug information (default: false)
  -h  Show a help message and quit
  -n  Don't colorize output (default: false)
  -q  Quiet mode: only print video URLs
  -p  The page of results to fetch (default: 1)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter struct {
	NoColor bool
	Quiet   bool
}

Formatter options

func (*Formatter) FormatSearchResult

func (f *Formatter) FormatSearchResult(result yt.SearchResult) string

FormatSearchResult with color and output, based on the given options.

Directories

Path Synopsis
cmd
yts

Jump to

Keyboard shortcuts

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