filebrowser/cmd/rules_ls.go
Yonas Yanfa b854347484 fix: build on FreeBSD and non-Linux platforms
`bash` is installed in `/usr/local/bin/bash` on FreeBSD. This patch should make the build work
without modification for FreeBSD and Linux.
2023-02-05 12:23:42 -05:00

20 lines
410 B
Go

package cmd
import (
"github.com/spf13/cobra"
)
func init() {
rulesCmd.AddCommand(rulesLsCommand)
}
var rulesLsCommand = &cobra.Command{
Use: "ls",
Short: "List global rules or user specific rules",
Long: `List global rules or user specific rules.`,
Args: cobra.NoArgs,
Run: python(func(cmd *cobra.Command, args []string, d pythonData) {
runRules(d.store, cmd, nil, nil)
}, pythonConfig{}),
}