gofmt
This commit is contained in:
parent
42ac8bee8c
commit
05b641bc97
7 changed files with 24 additions and 32 deletions
|
@ -12,5 +12,3 @@ var ewwCmd = &cobra.Command{
|
||||||
func init() {
|
func init() {
|
||||||
rootCmd.AddCommand(ewwCmd)
|
rootCmd.AddCommand(ewwCmd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -18,5 +18,3 @@ var makoCmd = &cobra.Command{
|
||||||
func init() {
|
func init() {
|
||||||
rootCmd.AddCommand(makoCmd)
|
rootCmd.AddCommand(makoCmd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
14
cmd/root.go
14
cmd/root.go
|
@ -2,12 +2,12 @@ package cmd
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
cc "github.com/ivanpirog/coloredcobra"
|
|
||||||
"git.dayl.in/daylin/hyprman/internal"
|
"git.dayl.in/daylin/hyprman/internal"
|
||||||
|
cc "github.com/ivanpirog/coloredcobra"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
func Execute() {
|
func Execute() {
|
||||||
cc.Init(&cc.Config{
|
cc.Init(&cc.Config{
|
||||||
RootCmd: rootCmd,
|
RootCmd: rootCmd,
|
||||||
|
@ -25,8 +25,10 @@ func Execute() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var configPath string
|
var (
|
||||||
var hm = &hyprman.Hyprman{}
|
configPath string
|
||||||
|
hm = &hyprman.Hyprman{}
|
||||||
|
)
|
||||||
|
|
||||||
var rootCmd = &cobra.Command{
|
var rootCmd = &cobra.Command{
|
||||||
Use: "hyprman",
|
Use: "hyprman",
|
||||||
|
@ -36,11 +38,7 @@ var rootCmd = &cobra.Command{
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
rootCmd.CompletionOptions.HiddenDefaultCmd = true
|
rootCmd.CompletionOptions.HiddenDefaultCmd = true
|
||||||
rootCmd.PersistentFlags().StringVarP(&configPath, "config", "c", hyprman.DefaultConfigPath(), "path to config file")
|
rootCmd.PersistentFlags().StringVarP(&configPath, "config", "c", hyprman.DefaultConfigPath(), "path to config file")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -277,4 +277,3 @@ func (hm *Hyprman) Watch() {
|
||||||
hm.handleHyprEvent(line)
|
hm.handleHyprEvent(line)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,4 +33,3 @@ package hyprman
|
||||||
// log.Fatal(err)
|
// log.Fatal(err)
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue