From 644eed6bc4ebf6744cbbf3287c708e125bb491aa Mon Sep 17 00:00:00 2001 From: equationzhao Date: Fri, 31 May 2024 03:21:15 +0800 Subject: [PATCH] :bookmark: new minor version --- internal/cli/version.go | 2 +- internal/display/printer.go | 1 - internal/global/const.go | 6 ++++-- script/install.sh | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/internal/cli/version.go b/internal/cli/version.go index fa25fe5..9eb9459 100644 --- a/internal/cli/version.go +++ b/internal/cli/version.go @@ -1,3 +1,3 @@ package cli -var Version = "0.27.0" +var Version = "0.28.0" diff --git a/internal/display/printer.go b/internal/display/printer.go index ff95c61..d214a6d 100644 --- a/internal/display/printer.go +++ b/internal/display/printer.go @@ -381,7 +381,6 @@ func (a *Across) printRowWithNoSpace(strs []string) { } func (a *Across) printRow(stringsArray []string, space int) { - termWidth := getTermWidth() - 2 n := len(stringsArray) diff --git a/internal/global/const.go b/internal/global/const.go index 7766e21..5dca23a 100644 --- a/internal/global/const.go +++ b/internal/global/const.go @@ -48,8 +48,10 @@ const ( const Reset = "\033[0m" -const DefaultHookLen = 5 -const Space = 2 +const ( + DefaultHookLen = 5 + Space = 2 +) const ( NameOfName = "Name" diff --git a/script/install.sh b/script/install.sh index 65650a9..53ee9cd 100755 --- a/script/install.sh +++ b/script/install.sh @@ -12,7 +12,7 @@ source "$(dirname "$0")/base.sh" # Get OS and architecture os_type=$(uname -s | tr '[:upper:]' '[:lower:]') os_arch=$(uname -m) -version="0.27.0" +version="0.28.0" man_url="https://github.com/Equationzhao/g/raw/v${version}/man/g.1.gz" shell_type=$(echo $SHELL | awk -F'/' '{print $NF}')