~imperator/quartiermeister-devel

all: add and check missing QM database init v1 SUPERSEDED

Philipp Stanner: 1
 all: add and check missing QM database init

 2 files changed, 6 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~imperator/quartiermeister-devel/patches/20789/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] all: add and check missing QM database init Export this patch

---
 bin/qm-create/main.go | 5 ++++-
 go.sum                | 2 ++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/bin/qm-create/main.go b/bin/qm-create/main.go
index d29fdce..c5a45ab 100644
--- a/bin/qm-create/main.go
@@ -23,7 +23,10 @@ func createItem(c *qm.Collection, opts *options) {
		os.Exit(-1)
	}

	it.Flush()
	if err = it.Flush(); err != nil {
		fmt.Fprintln(os.Stderr, err)
		os.Exit(-1)
	}
	if opts.parent == "" {
		goto out
	}
diff --git a/go.sum b/go.sum
index ae1e6de..d0c2171 100644
--- a/go.sum
+++ b/go.sum
@@ -39,6 +39,8 @@ github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/google/uuid v1.1.2 h1:EVhdT+1Kseyi1/pUmXKaFxYsDNy9RQYkMWRH68J/W7Y=
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/integrii/flaggy v1.4.4 h1:8fGyiC14o0kxhTqm2VBoN19fDKPZsKipP7yggreTMDc=
github.com/integrii/flaggy v1.4.4/go.mod h1:tnTxHeTJbah0gQ6/K0RW0J7fMUBk9MCF5blhm43LNpI=
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
-- 
2.20.1