Skip to content

g4titanx/task_manager_cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

details

the task manager CLI is a command-line tool designed to efficiently manage tasks using the terminal.

it allows users to add, list, retrieve and delete tasks. tasks are then stored in a JSON file, ensuring persistence across sessions.

installation

  1. clone the repository:
 git clone https://github.com/g4titanx/task-manager-cli.git
 cd task-manager-cli
  1. build the application:
cargo build --release

usage

to run the application:

cargo run -- [COMMAND] [OPTIONS]

commands

  1. use the add command to add a new task
cargo run -- add "TaskName" "Objective 1" "Objective 2"
  1. use the list command to list all tasks
cargo run -- list
  1. use the get command to get a specific task
cargo run -- get "TaskName"
  1. use the update command to update a specific task objective
cargo run -- update "TaskName" 0
  1. use the delete command to delete a specific task
cargo run -- delete "TaskName"

file structure

the tasks are stored in a JSON file (tasks.json) in the same directory where the CLI is executed. ensure this file is present and readable/writable by the application.

code overview

the core functionality is defined in the library. it includes methods to add, list, get, update and delete tasks, as well as to load and save tasks to a JSON file. the CLI is implemented using the clap crate, which provides a simple interface to define commands and arguments. the main application uses the task manager library to perform the desired operations based on user input.

contribution

feel free to fork this repository, make your changes, and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.

About

an experimental task manager cli built with rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages