mirror of
https://github.com/photoprism/photoprism.git
synced 2025-09-26 21:01:58 +08:00
9 lines
269 B
Go
9 lines
269 B
Go
package commands
|
|
|
|
import "github.com/urfave/cli/v2"
|
|
|
|
// JsonFlag returns the shared CLI flag definition for JSON output across commands.
|
|
func JsonFlag() *cli.BoolFlag {
|
|
return &cli.BoolFlag{Name: "json", Aliases: []string{"j"}, Usage: "print machine-readable JSON"}
|
|
}
|