Code Monkey home page Code Monkey logo

gtodo's Introduction

Go CLI Todo App

This is a simple command-line todo application written in Go. It allows you to create, read, update, and delete tasks into/from a local JSON file.

Installation

To install the application, you will need to have Go installed on your system. Once you have installed Go, you can download and install the application using the following command:

go install github.com/heybran/gtodo@latest

This will download the source code and install the application in your $GOPATH/bin directory.

Usage

Be sure to run gtodo init to generate an empty JSON file in your home directory to store todo tasks.

To use the application, simply run the gtodo command followed by one of the following subcommands:

  • add: Add a new task.
  • list: List all tasks.
  • update: Update the details of an existing task.
  • delete: Delete a task.

Each subcommand has its own set of options and arguments. Here are some examples of how to use the application:

# Add a new task
gtodo add -task "Recording tutorials on web components :host selector" -cat "Tutorial"

# List all tasks
gtodo list
gtodo list -done 1 # list tasks that are completed
gtodo list -done 1 -cat "Project" # list tasks that are completed and belong to category "Project"

# Update an existing task
gtodo update -id 1 -task "Hrmm, maybe write a blog post about :host selector instead"
gtodo update -id 1 -cat "Blog"

# Delete a task
gtodo delete -id 1

Uninstall

To uninstall the gtodo CLI app that you installed using go install, you can run the following command in your terminal:

go clean -i github.com/heybran/gtodo

This will remove the gtodo binary from your $GOPATH/bin directory. If you want to remove the source code as well, you can delete the directory $GOPATH/src/github.com/heybran/gtodo.

Contributing

If you find a bug or have a feature request, please open an issue on the GitHub repository. Pull requests are also welcome!

License

This application is licensed under the MIT License. See the LICENSE file for details.

gtodo's People

Contributors

heybran avatar priya1011 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.