Giter Club home page Giter Club logo

ip's Introduction

GuanGuan

Screenshot of GuanGuan Bot.

GuanGuan is designed for efficient task management to streamline your daily tasks and enhance productivity.

Setting up in Intellij

Prerequisites: JDK 11, update Intellij to the most recent version.

  1. Open Intellij (if you are not in the welcome screen, click File > Close Project to close the existing project first)
  2. Open the project into Intellij as follows:
    1. Click Open.
    2. Select the project directory, and click OK.
    3. If there are any further prompts, accept the defaults.
  3. Configure the project to use JDK 11 (not other versions) as explained in here.
    In the same dialog, set the Project language level field to the SDK default option.
  4. After that, locate the src/main/java/guanguan.Launcher.java file, right-click it, and choose Run Launcher.main() (if the code editor is showing compile errors, try restarting the IDE).

Features:

  • Words in UPPER_CASE are the parameters to be supplied by the user.
  • Input DATE format should be YYYY-MM-DD.
  • Example, in deadline DESCRIPTION /by DATE, DESCRIPTION and DATE are parameters which can be used as deadline complete CS2103T tutorial /by 2024-05-05.
  • Parameters can be in any order.

List tasks: list

List all tasks in the task list.

Format: list

Output:

Here are the tasks in your list:
1. [T][] complete CS2103T tutorial
2. [D][] dance practice (by: May 05 2024)

Add todo: todo

Add a todo task to the task list.

Format: todo DESCRIPTION

Examples:

  • todo complete CS2103T tutorial

Output:

Got it. I've added this task:
[T][] complete CS2103T tutorial
Now you have 1 tasks in the list.

Add deadline: deadline

Add a deadline task to the task list.

Format: deadline DESCRIPTION /by DATE

Examples:

  • deadline complete CS2103T tutorial /by 2024-05-05

Output:

Got it. I've added this task:
[D][] complete CS2103T tutorial (by: May 05 2024)
Now you have 1 tasks in the list.

Add event: event

Add an event task to the task list.

Format: event DESCRIPTION /from DATE /to DATE

Examples:

  • event complete CS2103T tutorial /from 2024-05-05 /to 2024-05-15

Output:

Got it. I've added this task:
[E][] complete CS2103T tutorial (from: May 05 2024 to: May 15 2024)
Now you have 1 tasks in the list.

Mark task: mark

Mark task as done.

Format: mark INDEX

Examples:

  • mark 1

Output:

Nice! I've marked this task as done:
[T][X] complete CS2103T tutorial

Unmark task: unmark

Mark task as undone.

Format: unmark INDEX

Examples:

  • unmark 1

Output:

OK, I've marked this task as not done yet:
[T][] complete CS2103T tutorial

Delete task: delete

Delete task from the task list.

Format: delete INDEX

Examples:

  • delete 1

Output:

Noted. I've removed this task:
[T][] complete CS2103T tutorial
Now you have 0 tasks in the list.

Find task: find

Find tasks that contain the keyword.

Format: find KEYWORD

Examples:

  • find tut

Output:

Here are the tasks in your list:
1. [T][] complete CS2103T tutorial

Exit: bye

Exit the program.

Format: bye

Output:

Bye. Hope to see you again soon!

Saving the data

Data are saved in the hard disk automatically after any command that changes the data. There is no need to save manually.

Editing the data file

Data are saved automatically as a text file [JAR file location]/data/tasks.txt. Advanced users are welcome to update data directly by editing that data file.

Command Summary

Action Format
Add Todo todo DESCRIPTION
Add Deadline deadline DESCRIPTION /by DATE
Add Event event DESCRIPTION /from DATE /to DATE
List list
Mark mark INDEX
Unmark unmark INDEX
Delete delete INDEX
Find find KEYWORD
Exit bye

Acknowledgements

GitHub Copilot is used to generate JavaDoc, but all generated comments are vetted and modified when needed to ensure that they are accurate.

ip's People

Contributors

guanquann avatar j-lum avatar damithc avatar seanleong339 avatar jiachen247 avatar eclipse-dominator avatar

Watchers

 avatar

ip's Issues

Sharing iP code quality feedback [for @guanquann]

@guanquann We did an automated analysis of your code to detect potential areas to improve the code quality. We are sharing the results below, to help you improve the iP code further.

IMPORTANT: Note that the script looked for just a few easy-to-detect problems only, and at-most three example are given i.e., there can be other areas/places to improve.

Aspect: Tab Usage

No easy-to-detect issues ๐Ÿ‘

Aspect: Naming boolean variables/methods

No easy-to-detect issues ๐Ÿ‘

Aspect: Brace Style

No easy-to-detect issues ๐Ÿ‘

Aspect: Package Name Style

No easy-to-detect issues ๐Ÿ‘

Aspect: Class Name Style

No easy-to-detect issues ๐Ÿ‘

Aspect: Dead Code

No easy-to-detect issues ๐Ÿ‘

Aspect: Method Length

No easy-to-detect issues ๐Ÿ‘

Aspect: Class size

No easy-to-detect issues ๐Ÿ‘

Aspect: Header Comments

Example from src/main/java/guanguan/GuanGuan.java lines 38-40:

    /**
     * Responsibe for running the chatbot.
     */

Example from src/main/java/guanguan/Task.java lines 38-40:

    /**
     * Mark task as done.
     */

Example from src/main/java/guanguan/Task.java lines 45-47:

    /**
     * Mark task as not done.
     */

Suggestion: Ensure method/class header comments follow the format specified in the coding standard, in particular, the phrasing of the overview statement.

Aspect: Recent Git Commit Message

No easy-to-detect issues ๐Ÿ‘

Aspect: Binary files in repo

No easy-to-detect issues ๐Ÿ‘


โ„น๏ธ The bot account used to post this issue is un-manned. Do not reply to this post (as those replies will not be read). Instead, contact [email protected] if you want to follow up on this post.

Sharing iP code quality feedback [for @guanquann] - Round 2

@guanquann We did an automated analysis of your code to detect potential areas to improve the code quality. We are sharing the results below, so that you can avoid similar problems in your tP code (which will be graded more strictly for code quality).

IMPORTANT: Note that the script looked for just a few easy-to-detect problems only, and at-most three example are given i.e., there can be other areas/places to improve.

Aspect: Tab Usage

No easy-to-detect issues ๐Ÿ‘

Aspect: Naming boolean variables/methods

No easy-to-detect issues ๐Ÿ‘

Aspect: Brace Style

No easy-to-detect issues ๐Ÿ‘

Aspect: Package Name Style

No easy-to-detect issues ๐Ÿ‘

Aspect: Class Name Style

No easy-to-detect issues ๐Ÿ‘

Aspect: Dead Code

No easy-to-detect issues ๐Ÿ‘

Aspect: Method Length

No easy-to-detect issues ๐Ÿ‘

Aspect: Class size

No easy-to-detect issues ๐Ÿ‘

Aspect: Header Comments

Example from src/main/java/guanguan/GuanGuan.java lines 38-40:

    /**
     * Responsibe for running the chatbot.
     */

Suggestion: Ensure method/class header comments follow the format specified in the coding standard, in particular, the phrasing of the overview statement.

Aspect: Recent Git Commit Message

No easy-to-detect issues ๐Ÿ‘

Aspect: Binary files in repo

No easy-to-detect issues ๐Ÿ‘


โ— You are not required to (but you are welcome to) fix the above problems in your iP, unless you have been separately asked to resubmit the iP due to code quality issues.

โ„น๏ธ The bot account used to post this issue is un-manned. Do not reply to this post (as those replies will not be read). Instead, contact [email protected] if you want to follow up on this post.

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.