Updated transitive dependencies
This commit is contained in:
parent
75abffda62
commit
afd2c8acd7
15
cmd/root.go
15
cmd/root.go
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue