~imperator/quartiermeister-devel

bin: create: add item.Flush() error check v1 SUPERSEDED

Philipp Stanner: 2
 bin: create: add item.Flush() error check
 qm: add ground path creation

 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/20790/mbox | git am -3
Learn more about email & git

[PATCH 1/2] bin: create: add item.Flush() error check Export this patch

---
 bin/qm-create/main.go | 5 ++++-
 1 file changed, 4 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
	}
-- 
2.20.1

[PATCH 2/2] qm: add ground path creation Export this patch

---
 qm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/qm b/qm
index 8f8ef47..a3b2d6f 100755
--- a/qm
+++ b/qm
@@ -18,6 +18,8 @@ main() {
    if [[ ! -d "$QM_PATH" ]]; then
        echo "\"$QM_PATH\" created."
        mkdir -p "$QM_PATH"
        mkdir -p "$QM_PATH"/$QM_COLLECTION/pool
        mkdir -p "$QM_PATH"/$QM_COLLECTION/projects
    fi

    if which "qm-$cmd" >& /dev/null; then
-- 
2.20.1