Skip to content

lukeschmit-dev/CLI-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI Todo

command-line todo application written in Scala

Prerequisites

  • Java 8 or higher
  • sbt (Scala Build Tool)

Build from source

git clone <repository-url>
cd CLI-toDo
sbt assembly

Global installation

  1. Build the executable JAR:

    sbt assembly
  2. Create a shell script wrapper:

    echo '#!/bin/bash
    java -jar "$(dirname "$0")/cli-todo-assembly-0.1.0.jar" "$@"' > target/scala-2.13/todo
    chmod +x target/scala-2.13/todo
  3. Add to your PATH (add to ~/.zshrc or ~/.bashrc):

    export PATH="$PATH:/path/to/CLI-toDo/target/scala-2.13"
  4. Reload your shell:

    source ~/.zshrc

Usage

Run the application:

todo

Commands

Command Description Example
add <title> [: description] Add a new task (use : to add description) add Buy groceries: Milk, bread, eggs
list Show all tasks list
done <id1> [id2] [id3]... Mark one or more tasks as complete done 1 3 5
del <id1> [id2] [id3]... Delete one or more tasks del 2 4
clear Remove all completed tasks clear
help Show help help
quit Exit program quit

Project structure

CLI-toDo/
├── src/
│   └── main/
│       └── scala/
│           ├── Main.scala          # Main application entry point
│           ├── Task.scala          # Task data model
│           └── TaskService.scala   # Business logic and UI
├── build.sbt                       # Build configuration
└── README.md                       # This file

Credits

The ASCII art banner was generated using the ASCII Text Generator.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages