photoprism/internal/commands/videos.go
Michael Mayer 8296708037 CLI: Adjust search query used in "photoprism video" subcommands
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-12-23 15:17:55 +01:00

38 lines
1,000 B
Go

package commands
import "github.com/urfave/cli/v2"
// VideosCommands configures the CLI subcommands for working with indexed videos.
var VideosCommands = &cli.Command{
Name: "videos",
Aliases: []string{"video"},
Usage: "Video troubleshooting and editing subcommands",
Subcommands: []*cli.Command{
VideoListCommand,
VideoTrimCommand,
VideoRemuxCommand,
VideoTranscodeCommand,
VideoInfoCommand,
},
}
// videoCountFlag limits the number of results returned by video commands.
var videoCountFlag = &cli.IntFlag{
Name: "count",
Aliases: []string{"n"},
Usage: "maximum `NUMBER` of results",
Value: 10000,
}
// videoForceFlag allows overwriting existing output files for remux/transcode.
var videoForceFlag = &cli.BoolFlag{
Name: "force",
Aliases: []string{"f"},
Usage: "replace existing output files",
}
// videoVerboseFlag adds raw metadata to video info output.
var videoVerboseFlag = &cli.BoolFlag{
Name: "verbose",
Usage: "include raw metadata output",
}