diff --git a/.gitignore b/.gitignore index c543bb1..a0899dc 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,4 @@ token.json google-tasks-cli gtasks gtasks.exe -bin/freebsd/gtasks-bsd -bin/freebsd/gtasks-mac -bin/mac/gtasks-mac +bin/* diff --git a/Makefile b/Makefile index 89ff689..2a88aaf 100644 --- a/Makefile +++ b/Makefile @@ -10,8 +10,13 @@ all: @echo "Building for every OS and Platform" GOOS=windows GOARCH=386 go build -o ./bin/windows/gtasks.exe GOOS=linux GOARCH=386 go build -o ./bin/linux/gtasks - GOOS=freebsd GOARCH=386 go build -o ./bin/freebsd/gtasks-bsd - GOOS=darwin GOARCH=amd64 go build -o ./bin/mac/gtasks-mac + GOOS=freebsd GOARCH=386 go build -o ./bin/freebsd/gtasks + GOOS=darwin GOARCH=amd64 go build -o ./bin/mac/gtasks + @echo "Zipping for release" + @tar -czf bin/releases/gtasks_linux.tar.gz LICENSE -C bin/linux gtasks + @tar -czf bin/releases/gtasks_win.tar.gz LICENSE -C bin/windows gtasks.exe + @tar -czf bin/releases/gtasks_mac_amd64.tar.gz LICENSE -C bin/mac gtasks + @tar -czf bin/releases/gtasks_bsd.tar.gz LICENSE -C bin/freebsd gtasks run: go run . global: @@ -21,4 +26,4 @@ push: git commit -m "$m" git push origin master release: - gh release create $v './bin/windows/gtasks.exe' './bin/linux/gtasks' './bin/mac/gtasks-mac' \ No newline at end of file + gh release create $v 'bin/releases/gtasks_linux.tar.gz' 'bin/releases/gtasks_win.tar.gz' 'bin/releases/gtasks_bsd.tar.gz' 'bin/releases/gtasks_mac_amd64.tar.gz' \ No newline at end of file diff --git a/cmd/tasks.go b/cmd/tasks.go index 6ad1380..73879ff 100644 --- a/cmd/tasks.go +++ b/cmd/tasks.go @@ -314,7 +314,7 @@ var deleteTaskCmd = &cobra.Command{ var showCompletedFlag bool func init() { - viewTasksCmd.Flags().BoolVarP(&showCompletedFlag, "completed", "c", false, "use this flag to include completed tasks") + viewTasksCmd.Flags().BoolVarP(&showCompletedFlag, "include-completed", "i", false, "use this flag to include completed tasks") tasksCmd.AddCommand(viewTasksCmd, createTaskCmd, markCompletedCmd, deleteTaskCmd) rootCmd.AddCommand(tasksCmd) }