cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   os.Args[0],
	Short: "gif-progress",
	Long:  "Attach progress bar to animated GIF",
	RunE: func(cmd *cobra.Command, args []string) error {

		hex, err := colors.ParseHEX(barColorString)
		if err != nil {
			return err
		}
		c := hex.ToRGB()
		barColor := color.RGBA{c.R, c.G, c.B, 255}

		inOutGif, err := gif.DecodeAll(os.Stdin)
		if err != nil {
			return err
		}

		gif_progress.AddProgressBar(inOutGif, barTop, barHeight, barColor)

		err = gif.EncodeAll(os.Stdout, inOutGif)
		return err
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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