cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 26 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Auth_API = "https://asciinema.org/connect/%s"
)
View Source
const (
	Upload_API = "https://asciinema.org/api/asciicasts"
)
View Source
const (
	Version = "1.2.0"
)

Envs

Variables

This section is empty.

Functions

func FixCast

func FixCast(fPath string)

func FixHeaderForEditOperations

func FixHeaderForEditOperations(inputFile, outputFile string)

func ParseQuantizeRange

func ParseQuantizeRange(input string) (res editor.QuantizeRange, err error)

ParseQuantizeRange takes an input string that represents a quantization range and converts it into a QuantizeRange instance.

It allows both bounded and unbounded ranges.

For instance: - bounded: 1,2 - unbounded: 1

Fails if the input can't be converted to a QuantizeRange.

Types

type Runner

type Runner struct {
	Title     string
	MaxWait   float64
	AssumeYes bool
	Quite     bool
	FilePath  string
	Cast      *asciicast.Asciicast
}

func New

func New(filename ...string) (r *Runner)

func (*Runner) Auth

func (r *Runner) Auth() (authUrl, result string)

func (*Runner) ConvertToGif

func (r *Runner) ConvertToGif(fPath, outFilePath string) (err error)

func (*Runner) Cut

func (r *Runner) Cut(inFilePath, outFilePath string, start, end float64) error

func (*Runner) Play

func (r *Runner) Play() error

func (*Runner) Quantize

func (r *Runner) Quantize(inFilePath, outFilePath string, ranges []string) (err error)

func (*Runner) Rec

func (r *Runner) Rec() error

func (*Runner) Speed

func (r *Runner) Speed(inFilePath, outFilePath string, factor, start, end float64) error

func (*Runner) Upload

func (r *Runner) Upload() (resp string, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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