mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
20 lines
363 B
Go
20 lines
363 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: func(cmd *cobra.Command, args []string) {
|
||
|
runRules(cmd, nil, nil)
|
||
|
},
|
||
|
}
|