Skip to content

A command-line interface (CLI) application for managing tasks.

Notifications You must be signed in to change notification settings

dfortch18/CsharpTaskManagement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CsharpTaskManagement - CLI Task Management Application

.NET Core Csharp

A command-line interface (CLI) application for managing tasks developed in C#.

screenshot.png

Features

  • Add tasks: Create new tasks by providing a name and description.
  • List tasks: Display all saved tasks in a tabular format.
  • Get task: Retrieve and display the details of a specific task by its ID.
  • Mark task as done: Update a task’s status to "done".
  • Delete tasks: Remove specific tasks using their ID.

Installation and Execution

Requirements

  • .NET SDK 8.0
  • Optional: Text editor or IDE such as Visual Studio, Visual Studio Code, or JetBrains Rider.

Configuration

  1. Optionally, you can change the path of the JSON file where tasks are saved:
    var services = new ServiceCollection()
    .AddTransient<ITaskRepository>(provider => new JsonFileTaskRepository("custom_path.json"))
    .BuildServiceProvider();
    
    ITaskRepository taskRepository = services.GetService<ITaskRepository>()!;
  2. Build the project:
    dotnet build
  3. Run the application:
    dotnet run -- <command> [options]

Usage

Add a new task

dotnet run -- add -n "Task Name" -d "Task Description"

List all tasks

dotnet run -- list

Get a task by ID

dotnet run -- get -i <task_id>

Mark a task as completed

dotnet run -- mark-done -i <task_id>

Delete a task by ID

dotnet run -- delete -i <task_id>

Acknowledgments

About

A command-line interface (CLI) application for managing tasks.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages