Skip to content

Commit

Permalink
Merge pull request #23 from tamada/release/v1.2.4
Browse files Browse the repository at this point in the history
Release/v1.2.4
  • Loading branch information
tamada authored May 19, 2023
2 parents 5af23a7 + 8d04345 commit 72d1987
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GO=go
NAME := sibling
VERSION := 1.2.3
VERSION := 1.2.4
DIST := $(NAME)-$(VERSION)

all: test build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![Go Report Card](https://goreportcard.com/badge/github.com/tamada/sibling)](https://goreportcard.com/report/github.com/tamada/sibling)

[![License](https://img.shields.io/badge/License-WTFPL-green.svg)](https://github.com/tamada/sibling/blob/master/LICENSE)
[![Version](https://img.shields.io/badge/Version-1.2.3-green.svg)](https://github.com/tamada/sibling/releases/tag/v1.2.3)
[![Version](https://img.shields.io/badge/Version-1.2.4-green.svg)](https://github.com/tamada/sibling/releases/tag/v1.2.4)

get next/previous sibling directory name.

Expand Down
6 changes: 2 additions & 4 deletions cmd/sibling/data/sibling.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function __change_directory_to_sibling() {
__change_directory_to_sibling() {
traversing_type="$1"
if [[ "$1" == "" ]]; then
traversing_type="next"
Expand All @@ -15,7 +15,7 @@ function __change_directory_to_sibling() {
return $sibling_status
}

function __cd_sibling_filtering() {
__cd_sibling_filtering() {
result="$(./sibling --list | $1)"
if [[ $(echo $result | wc -l) -ne 1 ]]; then
echo "Error: multiple paths are given"
Expand Down Expand Up @@ -53,5 +53,3 @@ cdrand() {
__change_directory_to_sibling random
}

alias nextdir="sibling -t next"
alias prevdir="sibling -t previous"
2 changes: 1 addition & 1 deletion cmd/sibling/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/tamada/sibling"
)

const VERSION = "1.2.3"
const VERSION = "1.2.4"

type options struct {
absolute bool
Expand Down
7 changes: 2 additions & 5 deletions cmd/sibling/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func Example_ShellFunctionGenerator() {
cmd.SetArgs([]string{"--init", "bash"})
cmd.Execute()
// Output:
// function __change_directory_to_sibling() {
// __change_directory_to_sibling() {
// traversing_type="$1"
// if [[ "$1" == "" ]]; then
// traversing_type="next"
Expand All @@ -61,7 +61,7 @@ func Example_ShellFunctionGenerator() {
// return $sibling_status
// }
//
// function __cd_sibling_filtering() {
// __cd_sibling_filtering() {
// result="$(./sibling --list | $1)"
// if [[ $(echo $result | wc -l) -ne 1 ]]; then
// echo "Error: multiple paths are given"
Expand Down Expand Up @@ -98,9 +98,6 @@ func Example_ShellFunctionGenerator() {
// cdrand() {
// __change_directory_to_sibling random
// }
//
// alias nextdir="sibling -t next"
// alias prevdir="sibling -t previous"
}

func Example_parent() {
Expand Down
2 changes: 1 addition & 1 deletion docs/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pygmentsStyle = "pygments"
project_tagline = "get next/previous sibling directory name"
dateFormat = "2006-01-02"
katex = true
version = "1.2.3"
version = "1.2.4"
footer = "[![GitHub](https://img.shields.io/badge/GitHub-tamada/sibling-blueviolet.svg?logo=github)](https://github.com/tamada/sibling) Made with [Hugo](https://gohugo.io/). Theme by [Cayman](https://github.com/zwbetz-gh/cayman-hugo-theme). Deployed to [GitHub Pages](https://pages.github.com/)."

[menu]
Expand Down

0 comments on commit 72d1987

Please sign in to comment.