cmd

package
v0.0.0-...-53359ae Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cli.App{
	Name:  "nyaa",
	Usage: "Use nyaa.si from the CLI",
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:    "dir",
			Aliases: []string{"d"},
			Usage:   "directory used to store the torrents",
			Value:   ".",
		},
		&cli.BoolFlag{
			Name:  "fullscreen",
			Usage: "run peerflix in fullscreen mode",
		},
		&cli.StringFlag{
			Name:  "player",
			Usage: "video player to run the videos on. available options: " + strings.Join(allowedVideoPlayers, ", "),
			Value: "vlc",
		},
	},
	Action: func(c *cli.Context) error {
		return ui.NewUI(&ui.UIOptions{
			VideoPlayer:     c.String("player"),
			Fullscreen:      c.Bool("fullscreen"),
			OutputDirectory: c.String("dir"),
		}).Run()
	},
}

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