feat: add the --conf command

Add the `--conf` command, which dipslay's the current `cheat`
configuration file path.
This commit is contained in:
Christopher Allen Lane
2022-08-07 14:08:25 -04:00
parent d598d96fce
commit ddbe710881
5 changed files with 26 additions and 0 deletions

11
cmd/cheat/cmd_conf.go Normal file
View File

@@ -0,0 +1,11 @@
package main
import (
"fmt"
"github.com/cheat/cheat/internal/config"
)
func cmdConf(opts map[string]interface{}, conf config.Config) {
fmt.Println(conf.Path)
}