Code Monkey home page Code Monkey logo

tasks-cli-app's Introduction

Tasks App

Objective

The objective of this project is to build a CLI application for managing tasks aka todo in the terminal.

TasksApp [command] [options]

Commands

Add command

The add command is used to create a task and store it on the sqlite db.

dotnet run add <title> [options]

Example:

dotnet run add "Pick up dry cleaning at 4pm."

Options

  • --completed options marks a task as completed upon creation.
dotnet run add "Go to the gym."  --completed

List command

To view the tasks that has just been created, use the list command.

dotnet run list

Example:

dotnet run list

We only see one task, this is because by default the list command only
displays tasks that have not been completed.

dotnet run list --all

Complete command

This command is used to mark a task as completed.

dotnet run complete <task ID>

Example:

dotnet run complete 1

list all tasks using the command dotnet run list --all.

Delete command

The delete command as the name suggests is used to delete a task.

dotnet run delete <task ID>

Example:

dotnet run delete 1

The command above the task with the ID 1 from the database.

Example Application

You can find an example version of this tasks app on the releases tab of this repo.

Extra Features

  • Change the IsComplete property of the Task data model to use a timestamp instead, which gives further information.
  • Add an update task feature
  • Implement the DueTime and DueDate features.

tasks-cli-app's People

Contributors

kvngdre avatar

Watchers

 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.