Git Product home page Git Product logo

taskcli's Introduction

Creating a Task Manager (a Charm Tutorial)

This project is inspired by the incredible work on Task Warrior, an open source CLI task manager. I use this project quite a bit for managing my projects without leaving the safety and comfort of my terminal. (⌐■_■)

We built a kanban board TUI in a previous tutorial, so the idea here is that we're going to build a task management CLI with Cobra that has Lip Gloss styles and can be viewed using our kanban board.

Note: We walk through the code explaining each and every piece of it in the corresponding video for this tutorial. Enjoy!!

Here's the plan:

Checklist

If you're following along with our tutorials for this project, or even if you want to try and tackle it yourself first, then look at our solutions, here's what you need to do:

Data Storage

  • set up a SQLite database
    • open SQLite DB
    • add task
    • delete task
    • edit task
    • get tasks

Making a CLI with Cobra

  • add CLI
    • add task
    • delete task
    • edit task
    • get tasks

Add a little... Je ne sais quoi

Project Layout

db.go - here we create our custom task struct and our data layer.

main.go - our main file handles our initial setup including opening a database and setting the data path for our application.

cmds.go - this is where we do all of our Cobra commands and setup for our CLI.

taskcli's People

Contributors

bashbunni avatar btwotch avatar dependabot[bot] 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.