Skip to content
This repository has been archived by the owner on Nov 8, 2020. It is now read-only.

Commit

Permalink
update v0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mrinjamul committed Sep 29, 2020
1 parent 5463225 commit c913a6c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 19 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# gtodo : A simple todo list application
# gtodo : A simple todoist application

gtodo will help you get more done in less time.
It's designed to be as simple as possible to help you
Expand Down Expand Up @@ -47,7 +47,8 @@ Download for your platform
For Linux,

```sh
unzip gtodo-linux-[whatever].zip
wget https://github.com/mrinjamul/gtodo/releases/download/v0.2.2/gtodo-linux-amd64-v0.2.2.zip
unzip gtodo-linux-amd64-v0.2.2.zip
chmod +x gtodo
sudo mv gtodo /usr/bin
```
Expand All @@ -60,8 +61,8 @@ You need to have `zip unzip wget`. To install simply type `pkg install zip unzip

```sh
cd ~
wget https://github.com/mrinjamul/gtodo/releases/download/v0.2.1/gtodo-linux-arm-v0.2.1.zip
unzip gtodo-linux-arm-v0.2.1.zip
wget https://github.com/mrinjamul/gtodo/releases/download/v0.2.2/gtodo-linux-arm-v0.2.2.zip
unzip gtodo-linux-arm-v0.2.2.zip
chmod +x gtodo
mv gtodo ../usr/bin
```
Expand Down Expand Up @@ -104,7 +105,7 @@ command and flag definitions are needed.

## Links

[Repo Website]()
[Repo Website](https://mrinjamul.github.io/gtodo/)

## License

Expand Down
13 changes: 4 additions & 9 deletions cmd/clear.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ package cmd

import (
"fmt"
"strings"

"github.com/mrinjamul/gtodo/todo"
"github.com/spf13/cobra"
Expand All @@ -40,21 +39,17 @@ func clearRun(cmd *cobra.Command, args []string) {
}
fmt.Println("Warning: All todo has been cleared.")
} else {
var response string
fmt.Print("Do you want to clear all todos (y/n) :")
fmt.Scanln(&response)
switch strings.ToLower(response) {
case "y", "yes":
response := todo.ConfirmPrompt("Do you want to clear all todos")
if response {
err := todo.SaveItems(dataFile, items)
if err != nil {
fmt.Printf("%v", err)
}
fmt.Println("Warning: All todo has been cleared.")
case "n", "no":
fmt.Println("Operation Canceled")
default:
} else {
fmt.Println("Operation Canceled")
}

}
}

Expand Down
7 changes: 4 additions & 3 deletions docs/_includes/03-body.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ Download for your platform
For Linux,

```sh
unzip gtodo-linux-[whatever].zip
wget https://github.com/mrinjamul/gtodo/releases/download/v0.2.2/gtodo-linux-amd64-v0.2.2.zip
unzip gtodo-linux-amd64-v0.2.2.zip
chmod +x gtodo
sudo mv gtodo /usr/bin
```
Expand All @@ -28,8 +29,8 @@ You need to have `zip unzip wget`. To install simply type `pkg install zip unzip

```sh
cd ~
wget https://github.com/mrinjamul/gtodo/releases/download/v0.2.1/gtodo-linux-arm-v0.2.1.zip
unzip gtodo-linux-arm-v0.2.1.zip
wget https://github.com/mrinjamul/gtodo/releases/download/v0.2.2/gtodo-linux-arm-v0.2.2.zip
unzip gtodo-linux-arm-v0.2.2.zip
chmod +x gtodo
mv gtodo ../usr/bin
```
Expand Down
2 changes: 1 addition & 1 deletion todo/todo.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type Item struct {
Done bool
}

var version string = "v0.2.1"
var version string = "v0.2.2"

// GetVersion : returns version info
func GetVersion() string {
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.2.1
v0.2.2

0 comments on commit c913a6c

Please sign in to comment.