mirror of https://github.com/synctv-org/synctv
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			27 lines
		
	
	
		
			428 B
		
	
	
	
		
			Go
		
	
			
		
		
	
	
			27 lines
		
	
	
		
			428 B
		
	
	
	
		
			Go
		
	
| package cmd
 | |
| 
 | |
| import (
 | |
| 	"fmt"
 | |
| 
 | |
| 	"github.com/spf13/cobra"
 | |
| 	"github.com/synctv-org/synctv/internal/bootstrap"
 | |
| 	"github.com/synctv-org/synctv/internal/conf"
 | |
| )
 | |
| 
 | |
| var ConfCmd = &cobra.Command{
 | |
| 	Use:   "conf",
 | |
| 	Short: "conf",
 | |
| 	Long:  `config file`,
 | |
| 	RunE:  Conf,
 | |
| }
 | |
| 
 | |
| func Conf(cmd *cobra.Command, args []string) error {
 | |
| 	bootstrap.InitConfig()
 | |
| 	fmt.Println(conf.Conf.String())
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| func init() {
 | |
| 	RootCmd.AddCommand(ConfCmd)
 | |
| }
 |