From d6ee613353283ca31ff171b4805bae2645ab582c Mon Sep 17 00:00:00 2001 From: itchyny Date: Sun, 9 Apr 2023 12:19:53 +0900 Subject: [PATCH 01/15] specify minimum permission for the default token in workflows --- .github/workflows/ci.yaml | 3 +++ .github/workflows/release.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4ecf920..dc76c7f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,6 +6,9 @@ on: - main pull_request: +permissions: + contents: read + jobs: test: name: Test diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a232aa3..19d94c2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -5,6 +5,9 @@ on: tags: - 'v*' +permissions: + contents: write + jobs: release: name: Release From 0d6dba4de7b80a0699668b8e5f0847ad83db6c1d Mon Sep 17 00:00:00 2001 From: itchyny Date: Sun, 9 Apr 2023 12:20:54 +0900 Subject: [PATCH 02/15] update GitHub action dependencies --- .github/workflows/ci.yaml | 4 ++-- .github/workflows/release.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index dc76c7f..e486e49 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,9 +18,9 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: 1.x - name: Test diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 19d94c2..71b1d54 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -14,9 +14,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: 1.x - name: Cross build From 8d31a98aa72c70253873c02832f3e612183dd58a Mon Sep 17 00:00:00 2001 From: itchyny Date: Sun, 9 Apr 2023 12:22:40 +0900 Subject: [PATCH 03/15] switch from deprecated io/ioutil to os package --- cmd/mmv/main.go | 5 ++--- mmv_test.go | 11 +++++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/cmd/mmv/main.go b/cmd/mmv/main.go index 8aed5bb..b3249af 100644 --- a/cmd/mmv/main.go +++ b/cmd/mmv/main.go @@ -4,7 +4,6 @@ import ( "errors" "flag" "fmt" - "io/ioutil" "math/rand" "os" "os/exec" @@ -86,7 +85,7 @@ func rename(args []string) error { xs[src] = true } - f, err := ioutil.TempFile("", name+"-") + f, err := os.CreateTemp("", name+"-") if err != nil { return err } @@ -120,7 +119,7 @@ func rename(args []string) error { return fmt.Errorf("abort renames: %s", err) } - cnt, err := ioutil.ReadFile(f.Name()) + cnt, err := os.ReadFile(f.Name()) if err != nil { return err } diff --git a/mmv_test.go b/mmv_test.go index 8f0177c..f8d93ce 100644 --- a/mmv_test.go +++ b/mmv_test.go @@ -1,7 +1,6 @@ package mmv import ( - "io/ioutil" "os" "path/filepath" "reflect" @@ -385,9 +384,9 @@ func TestRename(t *testing.T) { } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { - dir, err := ioutil.TempDir("", "mmv-") + dir, err := os.MkdirTemp("", "mmv-") if err != nil { - t.Fatalf("ioutil.TempDir returned an error: %s", err) + t.Fatalf("os.MkdirTemp returned an error: %s", err) } t.Cleanup(func() { os.RemoveAll(dir) }) if err := os.Chdir(dir); err != nil { @@ -423,7 +422,7 @@ func setupFiles(contents map[string]string) error { return err } } - if err := ioutil.WriteFile(f, []byte(cnt), 0o600); err != nil { + if err := os.WriteFile(f, []byte(cnt), 0o600); err != nil { return err } } @@ -432,7 +431,7 @@ func setupFiles(contents map[string]string) error { func fileContents(dir string) map[string]string { m := make(map[string]string) - fis, _ := ioutil.ReadDir(dir) + fis, _ := os.ReadDir(dir) for _, fi := range fis { if fi.IsDir() { for k, v := range fileContents(filepath.Join(dir, fi.Name())) { @@ -440,7 +439,7 @@ func fileContents(dir string) map[string]string { } } else { path := filepath.Join(dir, fi.Name()) - cnt, _ := ioutil.ReadFile(path) + cnt, _ := os.ReadFile(path) m[filepath.ToSlash(path)] = string(cnt) } } From 49d37b4903a4e85e05e576d06286bb6d0bd57903 Mon Sep 17 00:00:00 2001 From: itchyny Date: Sun, 9 Apr 2023 12:23:33 +0900 Subject: [PATCH 04/15] add package comment and enable all checks of staticcheck --- Makefile | 2 +- mmv.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 91cf1d9..99530ce 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ test: build .PHONY: lint lint: $(GOBIN)/staticcheck go vet ./... - staticcheck ./... + staticcheck -checks all ./... $(GOBIN)/staticcheck: go install honnef.co/go/tools/cmd/staticcheck@latest diff --git a/mmv.go b/mmv.go index 4b6fae9..0a9856c 100644 --- a/mmv.go +++ b/mmv.go @@ -1,3 +1,4 @@ +// Package mmv provides a method to rename multiple files. package mmv import ( From e81d936dd5c268122f1b062d5ca30d9148e8d989 Mon Sep 17 00:00:00 2001 From: itchyny Date: Sun, 9 Apr 2023 12:25:22 +0900 Subject: [PATCH 05/15] switch from math/rand to crypto/rand package --- cmd/mmv/main.go | 6 ------ mmv.go | 10 +++++++--- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/cmd/mmv/main.go b/cmd/mmv/main.go index b3249af..e560186 100644 --- a/cmd/mmv/main.go +++ b/cmd/mmv/main.go @@ -4,12 +4,10 @@ import ( "errors" "flag" "fmt" - "math/rand" "os" "os/exec" "runtime" "strings" - "time" _ "github.com/mattn/getwild" "github.com/mattn/go-tty" @@ -23,10 +21,6 @@ const version = "0.1.4" var revision = "HEAD" -func init() { - rand.Seed(time.Now().UnixNano()) -} - func main() { os.Exit(run(os.Args[1:])) } diff --git a/mmv.go b/mmv.go index 0a9856c..bd5ba36 100644 --- a/mmv.go +++ b/mmv.go @@ -2,10 +2,10 @@ package mmv import ( - "math/rand" + "crypto/rand" + "encoding/base64" "os" "path/filepath" - "strconv" "strings" ) @@ -251,8 +251,12 @@ func buildRenames(files map[string]string) ([]rename, error) { // create a temporary path where there is no file currently func temporaryPath(dir string) (string, error) { + bs := make([]byte, 16) for i := 0; i < 256; i++ { - path := filepath.Join(dir, strconv.FormatUint(rand.Uint64()|1<<60, 16)) + if _, err := rand.Read(bs); err != nil { + return "", err + } + path := filepath.Join(dir, base64.RawURLEncoding.EncodeToString(bs)) if _, err := os.Stat(path); err != nil && os.IsNotExist(err) { return path, nil } From fec2c9b38959c625930a98c5010d666911021bee Mon Sep 17 00:00:00 2001 From: itchyny Date: Sun, 9 Apr 2023 12:27:02 +0900 Subject: [PATCH 06/15] improve Makefile --- Makefile | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/Makefile b/Makefile index 99530ce..7118747 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ BIN := mmv VERSION := $$(make -s show-version) VERSION_PATH := cmd/$(BIN) -CURRENT_REVISION := $(shell git rev-parse --short HEAD) -BUILD_LDFLAGS := "-s -w -X main.revision=$(CURRENT_REVISION)" +CURRENT_REVISION = $(shell git rev-parse --short HEAD) +BUILD_LDFLAGS = "-s -w -X main.revision=$(CURRENT_REVISION)" GOBIN ?= $(shell go env GOPATH)/bin .PHONY: all @@ -14,19 +14,18 @@ build: .PHONY: install install: - go install -ldflags=$(BUILD_LDFLAGS) ./... + go install -ldflags=$(BUILD_LDFLAGS) ./cmd/$(BIN) .PHONY: show-version show-version: $(GOBIN)/gobump - @gobump show -r $(VERSION_PATH) + @gobump show -r "$(VERSION_PATH)" $(GOBIN)/gobump: @go install github.com/x-motemen/gobump/cmd/gobump@latest .PHONY: cross cross: $(GOBIN)/goxz CREDITS - goxz -n $(BIN) -pv=v$(VERSION) -arch=amd64,arm64 \ - -build-ldflags=$(BUILD_LDFLAGS) ./cmd/$(BIN) + goxz -n $(BIN) -pv=v$(VERSION) -build-ldflags=$(BUILD_LDFLAGS) ./cmd/$(BIN) $(GOBIN)/goxz: go install github.com/Songmu/goxz/cmd/goxz@latest @@ -57,17 +56,12 @@ clean: .PHONY: bump bump: $(GOBIN)/gobump -ifneq ($(shell git status --porcelain),) - $(error git workspace is dirty) -endif -ifneq ($(shell git rev-parse --abbrev-ref HEAD),main) - $(error current branch is not main) -endif + test -z "$$(git status --porcelain || echo .)" + test "$$(git branch --show-current)" = "main" @gobump up -w "$(VERSION_PATH)" git commit -am "bump up version to $(VERSION)" git tag "v$(VERSION)" - git push origin main - git push origin "refs/tags/v$(VERSION)" + git push --atomic origin main tag "v$(VERSION)" .PHONY: upload upload: $(GOBIN)/ghr From 467ba873c33a125f497b78adc414f9c8b21ed0ed Mon Sep 17 00:00:00 2001 From: itchyny Date: Sun, 9 Apr 2023 12:29:16 +0900 Subject: [PATCH 07/15] support EDITOR with spaces in the editor path (close #19, ref #10) --- cmd/mmv/main.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/cmd/mmv/main.go b/cmd/mmv/main.go index e560186..01a80a7 100644 --- a/cmd/mmv/main.go +++ b/cmd/mmv/main.go @@ -98,14 +98,7 @@ func rename(args []string) error { } defer tty.Close() - editor := os.Getenv("EDITOR") - if editor == "" { - editor = "vi" - } - editorWithArgs := strings.Fields(editor) - editorWithArgs = append(editorWithArgs, f.Name()) - - cmd := exec.Command(editorWithArgs[0], editorWithArgs[1:]...) + cmd := exec.Command("sh", "-c", `eval exec "${EDITOR:-vi}" '"$@"'`, "", f.Name()) cmd.Stdin = tty.Input() cmd.Stdout = tty.Output() cmd.Stderr = tty.Output() From 6a82806d144089e9e29c70327b48ac3a1f230aeb Mon Sep 17 00:00:00 2001 From: itchyny Date: Sun, 9 Apr 2023 12:32:45 +0900 Subject: [PATCH 08/15] migrate from deprecated create-release action --- .github/workflows/release.yaml | 13 +++---------- Makefile | 7 ------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 71b1d54..2ec95ca 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,14 +22,7 @@ jobs: - name: Cross build run: make cross - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: ncipollo/release-action@v1 with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - - name: Upload - run: make upload - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + name: Release ${{ github.ref_name }} + artifacts: 'goxz/*' diff --git a/Makefile b/Makefile index 7118747..6301fb1 100644 --- a/Makefile +++ b/Makefile @@ -62,10 +62,3 @@ bump: $(GOBIN)/gobump git commit -am "bump up version to $(VERSION)" git tag "v$(VERSION)" git push --atomic origin main tag "v$(VERSION)" - -.PHONY: upload -upload: $(GOBIN)/ghr - ghr "v$(VERSION)" goxz - -$(GOBIN)/ghr: - go install github.com/tcnksm/ghr@latest From 97dd98cb16f465cc4b43ceb5e1a6362817a94351 Mon Sep 17 00:00:00 2001 From: itchyny Date: Sun, 9 Apr 2023 12:34:04 +0900 Subject: [PATCH 09/15] update dependencies --- go.mod | 11 +++++++---- go.sum | 17 ++++++++--------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/go.mod b/go.mod index 5074b50..ef090f5 100644 --- a/go.mod +++ b/go.mod @@ -1,10 +1,13 @@ module github.com/itchyny/mmv -go 1.16 +go 1.20 require ( github.com/mattn/getwild v0.0.2-0.20200919000855-c2e221927ad6 - github.com/mattn/go-isatty v0.0.14 // indirect - github.com/mattn/go-tty v0.0.3 - golang.org/x/sys v0.0.0-20210917161153-d61c044b1678 // indirect + github.com/mattn/go-tty v0.0.4 +) + +require ( + github.com/mattn/go-isatty v0.0.18 // indirect + golang.org/x/sys v0.7.0 // indirect ) diff --git a/go.sum b/go.sum index d3d6e10..a384a42 100644 --- a/go.sum +++ b/go.sum @@ -3,15 +3,14 @@ github.com/mattn/getwild v0.0.2-0.20200919000855-c2e221927ad6/go.mod h1:AG+GKQyd github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.10/go.mod h1:qgIWMr58cqv1PHHyhnkY9lrL7etaEgOFcMEpPG5Rm84= -github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y= -github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/mattn/go-runewidth v0.0.6/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= -github.com/mattn/go-tty v0.0.3 h1:5OfyWorkyO7xP52Mq7tB36ajHDG5OHrmBGIS/DtakQI= -github.com/mattn/go-tty v0.0.3/go.mod h1:ihxohKRERHTVzN+aSVRwACLCeqIoZAWpoICkkvrWyR0= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +github.com/mattn/go-isatty v0.0.18 h1:DOKFKCQ7FNG2L1rbrmstDN4QVRdS89Nkh85u68Uwp98= +github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-runewidth v0.0.7/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= +github.com/mattn/go-tty v0.0.4 h1:NVikla9X8MN0SQAqCYzpGyXv0jY7MNl3HOWD2dkle7E= +github.com/mattn/go-tty v0.0.4/go.mod h1:u5GGXBtZU6RQoKV8gY5W6UhMudbR5vXnUe7j3pxse28= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20191008105621-543471e840be/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20210917161153-d61c044b1678 h1:J27LZFQBFoihqXoegpscI10HpjZ7B5WQLLKL2FZXQKw= -golang.org/x/sys v0.0.0-20210917161153-d61c044b1678/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.7.0 h1:3jlCCIQZPdOYu1h8BkNvLz8Kgwtae2cagcG/VamtZRU= +golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= From 03ad35008b4a6608da49c1c386cf5c83c9f3cbe3 Mon Sep 17 00:00:00 2001 From: itchyny Date: Sun, 9 Apr 2023 12:34:40 +0900 Subject: [PATCH 10/15] update copyright year in LICENSE --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index d6d8af2..3e03a16 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020-2021 itchyny +Copyright (c) 2020-2023 itchyny Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 834e2a759b95f00aff7ea29a397037cf040ea207 Mon Sep 17 00:00:00 2001 From: itchyny Date: Sun, 9 Apr 2023 12:35:34 +0900 Subject: [PATCH 11/15] update CHANGELOG.md for v0.1.5 --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fc9147..d0bd754 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # Changelog +## [v0.1.5](https://github.com/itchyny/mmv/compare/v0.1.4..v0.1.5) (2023-04-09) +* Support EDITOR with spaces in the editor path. + ## [v0.1.4](https://github.com/itchyny/mmv/compare/v0.1.3..v0.1.4) (2021-09-18) * Release `arm64` artifacts. From f627dff093a7a26263ee013487a6d0dc578aeeb2 Mon Sep 17 00:00:00 2001 From: itchyny Date: Sun, 9 Apr 2023 12:49:00 +0900 Subject: [PATCH 12/15] bump up version to 0.1.5 --- cmd/mmv/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/mmv/main.go b/cmd/mmv/main.go index 01a80a7..0fe5d51 100644 --- a/cmd/mmv/main.go +++ b/cmd/mmv/main.go @@ -17,7 +17,7 @@ import ( const name = "mmv" -const version = "0.1.4" +const version = "0.1.5" var revision = "HEAD" From 7c8adbbb4ca433f7f4cc1dcf86113d0bf7284cbb Mon Sep 17 00:00:00 2001 From: itchyny Date: Fri, 21 Apr 2023 22:12:21 +0900 Subject: [PATCH 13/15] split EDITOR in Go to remove dependency on sh (ref #19) --- cmd/mmv/main.go | 13 ++++++++++++- go.mod | 1 + go.sum | 2 ++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/cmd/mmv/main.go b/cmd/mmv/main.go index 0fe5d51..3eb21e0 100644 --- a/cmd/mmv/main.go +++ b/cmd/mmv/main.go @@ -9,6 +9,7 @@ import ( "runtime" "strings" + "github.com/kballard/go-shellquote" _ "github.com/mattn/getwild" "github.com/mattn/go-tty" @@ -98,7 +99,17 @@ func rename(args []string) error { } defer tty.Close() - cmd := exec.Command("sh", "-c", `eval exec "${EDITOR:-vi}" '"$@"'`, "", f.Name()) + editor := os.Getenv("EDITOR") + if editor == "" { + editor = "vi" + } + editorWithArgs, err := shellquote.Split(editor) + if err != nil { + return fmt.Errorf("%s: %s", err, editor) + } + editorWithArgs = append(editorWithArgs, f.Name()) + + cmd := exec.Command(editorWithArgs[0], editorWithArgs[1:]...) cmd.Stdin = tty.Input() cmd.Stdout = tty.Output() cmd.Stderr = tty.Output() diff --git a/go.mod b/go.mod index ef090f5..f7b9d35 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,7 @@ module github.com/itchyny/mmv go 1.20 require ( + github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 github.com/mattn/getwild v0.0.2-0.20200919000855-c2e221927ad6 github.com/mattn/go-tty v0.0.4 ) diff --git a/go.sum b/go.sum index a384a42..2933528 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,5 @@ +github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= +github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/mattn/getwild v0.0.2-0.20200919000855-c2e221927ad6 h1:uWR+2CTTaHQzDS/DApbJ2H8UEPQl90atrKtczXj2xcs= github.com/mattn/getwild v0.0.2-0.20200919000855-c2e221927ad6/go.mod h1:AG+GKQydHp7iLJn+VV+D7y8LeYs5bQ0Xz4fmKd5o1Sg= github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE= From e40bbff0812132353bdd48bb4ffc03d28a0074fa Mon Sep 17 00:00:00 2001 From: itchyny Date: Wed, 26 Apr 2023 18:54:19 +0900 Subject: [PATCH 14/15] update CHANGELOG.md for v0.1.6 --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d0bd754..aa8e677 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # Changelog +## [v0.1.6](https://github.com/itchyny/mmv/compare/v0.1.5..v0.1.6) (2023-04-26) +* Remove dependency on shell for splitting EDITOR with spaces. + ## [v0.1.5](https://github.com/itchyny/mmv/compare/v0.1.4..v0.1.5) (2023-04-09) * Support EDITOR with spaces in the editor path. From cf6f0458b750fc3cf9d94f6d4f0816b4625396ab Mon Sep 17 00:00:00 2001 From: itchyny Date: Wed, 26 Apr 2023 19:00:01 +0900 Subject: [PATCH 15/15] bump up version to 0.1.6 --- cmd/mmv/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/mmv/main.go b/cmd/mmv/main.go index 3eb21e0..6e854c4 100644 --- a/cmd/mmv/main.go +++ b/cmd/mmv/main.go @@ -18,7 +18,7 @@ import ( const name = "mmv" -const version = "0.1.5" +const version = "0.1.6" var revision = "HEAD"