added -N flag, added -m template support to get and list commands

This commit is contained in:
2024-12-20 11:53:09 +01:00
parent ba39e3f8cd
commit d94868132d
7 changed files with 143 additions and 70 deletions

View File

@@ -2,15 +2,17 @@ package cfg
import "github.com/tlinden/anydb/app"
var Version string = "v0.0.2"
var Version string = "v0.0.3"
type Config struct {
Debug bool
Dbfile string
Mode string // wide, table, yaml, json
NoHeaders bool
Encrypt bool
DB *app.DB
File string
Tags []string
Debug bool
Dbfile string
Template string
Mode string // wide, table, yaml, json
NoHeaders bool
NoHumanize bool
Encrypt bool
DB *app.DB
File string
Tags []string
}