mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
72069207c6
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>
26 lines
553 B
Go
26 lines
553 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func init() {
|
|
configCmd.AddCommand(configCatCmd)
|
|
}
|
|
|
|
var configCatCmd = &cobra.Command{
|
|
Use: "cat",
|
|
Short: "Prints the configuration",
|
|
Long: `Prints the configuration.`,
|
|
Args: cobra.NoArgs,
|
|
Run: python(func(cmd *cobra.Command, args []string, d pythonData) {
|
|
set, err := d.store.Settings.Get()
|
|
checkErr(err)
|
|
ser, err := d.store.Settings.GetServer()
|
|
checkErr(err)
|
|
auther, err := d.store.Auth.Get(set.AuthMethod)
|
|
checkErr(err)
|
|
printSettings(ser, set, auther)
|
|
}, pythonConfig{}),
|
|
}
|