cmd

package
v0.0.0-...-09a8973 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Copyright © 2022 Shubh Karman Singh <sksingh2211@gmail.com> All rights reserved. This Project is under BSD-3 License Clause. Look at License for more detail.

Copyright © 2022 Shubh Karman Singh <sksingh2211@gmail.com> All rights reserved. This Project is under BSD-3 License Clause. Look at License for more detail.

Copyright © 2022 Shubh Karman Singh <sksingh2211@gmail.com> All rights reserved. This Project is under BSD-3 License Clause. Look at License for more detail.

Copyright © 2022 Shubh Karman Singh <sksingh2211@gmail.com> All rights reserved. This Project is under BSD-3 License Clause. Look at License for more detail.

Index

Constants

This section is empty.

Variables

View Source
var (
	MovieName  string
	SeriesName string
)

Flags for searchCmd

View Source
var ConfigCmd = &cobra.Command{
	Use:   "config",
	Short: "Used to change already set user preferences or reset the user preferences to default",
	Long:  `YAST is a TUI utility that will let you stream your favorite movies/tv-series in one command.`,
	RunE:  CallUpdateConfig,
}

configCmd represents the config command

View Source
var SearchCmd = &cobra.Command{
	Use:   "search",
	Short: "Search for a movie or tv-series that you want to watch",
	Long:  `YAST is a TUI utility that will let you stream your favorite movies/tv-series in one command.`,
	RunE:  Search,
}

searchCmd represents the search command

Functions

func CallSetup

func CallSetup(cmd *cobra.Command, args []string) error

func CallUpdateConfig

func CallUpdateConfig(cmd *cobra.Command, args []string) error

func CheckIfConfigFlagSet

func CheckIfConfigFlagSet(cmd *cobra.Command) (bool, bool, bool)

func CheckIfSearchFlagsSet

func CheckIfSearchFlagsSet(cmd *cobra.Command, args []string) (movieSet, seriesSet, bothSet bool, err error)

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 Search(cmd *cobra.Command, args []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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