Updated transitive dependencies

This commit is contained in:
Seednode 2023-12-27 20:31:18 -06:00
parent 75abffda62
commit afd2c8acd7
1 changed files with 13 additions and 2 deletions

View File

@ -13,7 +13,7 @@ import (
) )
const ( const (
ReleaseVersion string = "3.4.2" ReleaseVersion string = "3.4.3"
) )
var ( var (
@ -52,6 +52,17 @@ var (
Version bool Version bool
Videos bool Videos bool
RequiredArgs = []string{
"all",
"audio",
"code",
"fallback",
"flash",
"images",
"text",
"video",
}
rootCmd = &cobra.Command{ rootCmd = &cobra.Command{
Use: "roulette <path> [path]...", Use: "roulette <path> [path]...",
Short: "Serves random media from the specified directories.", Short: "Serves random media from the specified directories.",
@ -132,7 +143,7 @@ func init() {
rootCmd.Flags().SetInterspersed(true) rootCmd.Flags().SetInterspersed(true)
rootCmd.MarkFlagsOneRequired("all", "audio", "code", "fallback", "flash", "images", "text", "video") rootCmd.MarkFlagsOneRequired(RequiredArgs...)
rootCmd.SetHelpCommand(&cobra.Command{ rootCmd.SetHelpCommand(&cobra.Command{
Hidden: true, Hidden: true,