server view command flags
Some checks failed
code scans / scans (push) Has been cancelled

- adding decode flag to server view command
- more idiomatic naming for db funcs
This commit is contained in:
2025-11-25 20:18:01 -05:00
parent 0e50a4908b
commit 7a09123677
5 changed files with 61 additions and 18 deletions

View File

@@ -32,7 +32,7 @@ var runCmd = &cobra.Command{
}
defer db.Close()
crun, err := db.GetCmd(cname)
crun, err := db.Cmd(cname)
if err != nil {
if err.Error() == ErrInit {
fmt.Println(ErrInitRsp)

View File

@@ -20,7 +20,7 @@ var viewCmd = &cobra.Command{
cobra.CheckErr(err)
defer db.Close()
ts, err := db.GetAllCmds()
ts, err := db.AllCmds()
if err != nil {
if err.Error() == ErrInit {
fmt.Println(ErrInitRsp)