Skip to content

Commit

Permalink
Release v0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bastengao committed Jun 27, 2023
1 parent 298b672 commit 30b547d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,24 @@ gncdu implements [NCurses Disk Usage](https://dev.yorhel.nl/ncdu)(ncdu) with gol

## Install

Download executable file from [releases](https://github.com/bastengao/gncdu/releases) page.
### Binaries

Or execute `go install github.com/bastengao/gncdu`.
macOS (Apple Silicon)

wget -O https://github.com/bastengao/gncdu/releases/download/v0.7.0/gncdu-darwin-arm64 && chmod +x /usr/local/bin/gncdu

Linux (amd64)

wget -O /usr/local/bin/gncdu https://github.com/bastengao/gncdu/releases/download/v0.7.0/gncdu-linux-amd64 && chmod +x /usr/local/bin/gncdu

Or download executable file from [releases](https://github.com/bastengao/gncdu/releases) page.

### Install from source

go install github.com/bastengao/gncdu

## Usage

gncdu [path]

![screenshot](http://bastengao.com/images/others/gncdu-screenshot-v0.6.0.png)
![screenshot](http://bastengao.com/images/others/gncdu-screenshot-v0.7.0.png)
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func main() {
flag.Parse()

if helpFlag != nil && *helpFlag {
fmt.Printf("gncdu %s\n", ui.Version)
flag.Usage()
return
}
Expand Down
4 changes: 2 additions & 2 deletions ui/pages.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,10 @@ func NewHelpPage(app *tview.Application) *HelpPage {
}

func (p *HelpPage) Show() {
text := `GNCDU v0.6.0
text := fmt.Sprintf(`GNCDU %s
https://github.com/bastengao/gncdu
`
`, Version)
modal := tview.NewModal().
SetText(text).
AddButtons([]string{"OK"}).
Expand Down
3 changes: 3 additions & 0 deletions ui/version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package ui

var Version = "v0.7.0"

0 comments on commit 30b547d

Please sign in to comment.