mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
46b221533a
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
27 lines
418 B
Go
27 lines
418 B
Go
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(cmdsCmd)
|
|
}
|
|
|
|
var cmdsCmd = &cobra.Command{
|
|
Use: "cmds",
|
|
Short: "Command runner management utility",
|
|
Long: `Command runner management utility.`,
|
|
Args: cobra.NoArgs,
|
|
}
|
|
|
|
func printEvents(m map[string][]string) {
|
|
for evt, cmds := range m {
|
|
for i, cmd := range cmds {
|
|
fmt.Printf("%s(%d): %s\n", evt, i, cmd)
|
|
}
|
|
}
|
|
}
|