Skip to main content

CLI to retrieve a list of all TODO comments in the code

Project description

todocom (Todo Comments)

CLI program that retrieves all TODO comments from file(s) and prints them in terminal/shell. It was created in order to automatically update a list of TODO tasks by simply adding "TODO:" comments in the code (Comments Format). It also enables prioritization of tasks by using "TODO soon:" or "TODO urgent". To create the TODO list, simply open terminal and run the following command:

todo [folder/file]

gen_todo

This command will print out all TODO comments that were found in the code, sorted by their prioritization: urgent, soon and regular. Urgent tasks will be printed in RED, soon in CYAN and regular comments in WHITE to make it easier to read. There is also an option to filter comments by their priotization:

# Prints urgent TODOs
todo -u [folder/file]

urgent_todo

Or:

# Prints soon TODOs
todo -s [folder/file]

soon_todo

Comments can also be assigned to a user by adding "Todo @username" comment:

# Prints soon TODOs
todo -a [USERNAME] [folder/file]

assigned_todo

Finally, there is an option to save the list in a text file (stores as regular text without colors):

# Store results in a txt file![dummy](https://user-images.githubusercontent.com/73610201/211216021-a4859641-69a6-4e94-8f8c-2c0cafd0a455.png)

todo -o [path/to/sample.txt] [folder/file]

Setup

pip install todocom

Comments Format

There are two types of comments: single line and multi-line. Currently, multi-line comments (docstrings) are only supported in Python, but single line should work for most programming languages.

Format is flexible and can be lower-case, upper-case or a combination of both. Below are several examples:

1. TODO:
2. TODo:
3. TOD0:
4. ToD0:
5. To-D0:
6. to-do:

In Urgent and soon comments the TODO part is flexible as shown above, but must be followed by either urgent or soon in lower-case:

1. TO-DO soon:
2. tODo soon: 
3. ToD0 urgent:
4. T0-D0 urgent:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

todocom-0.2.9.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

todocom-0.2.9-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file todocom-0.2.9.tar.gz.

File metadata

  • Download URL: todocom-0.2.9.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.8 Darwin/21.6.0

File hashes

Hashes for todocom-0.2.9.tar.gz
Algorithm Hash digest
SHA256 d52da2fd9a5b50aedc3c95a1369bb74fcf5c93cc688d97e926088a9ccafb4ce1
MD5 66ea3963f0fec4d98c146b38a91f5b5c
BLAKE2b-256 db343e4eea9df06bec578c17e8b979135738686aaaed6122d83f66bcfae0682a

See more details on using hashes here.

File details

Details for the file todocom-0.2.9-py3-none-any.whl.

File metadata

  • Download URL: todocom-0.2.9-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.8 Darwin/21.6.0

File hashes

Hashes for todocom-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 021b3499f380658ebb0676c64812f421d833e99106e8a43a752efb2680662405
MD5 8069c89299e514f4cd07b97fc58e9dc2
BLAKE2b-256 21244681cfc2a9abca4fabf29ea2c03e7c7b840ced73cfda4094fd767a1fd393

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page