worklogging
v0.0.2
Published
A simple cross-platform loggin CLI tool
Readme
wlog - Work Log CLI
wlog is a command-line tool for managing work logs and projects. It helps you track hours worked, associate logs with projects, and generate reports.
Installation
To use wlog, ensure you have Node.js installed. Then, install the CLI globally using npm:
npm i -g mktawileh/wlog#mainOr you can install a specific version:
npm i -g mktawileh/wlog#0.0.1Usage
General Syntax
wlog [--<option>[ <option-value>]] <command> [<command-args>]Commands
1. Project Management
Add a Project:
wlog project <project-name>Rename a Project:
wlog project --rename <new-name> <project-id>Remove a Project:
wlog project --remove <project-id>List All Projects:
wlog project --list
2. Work Log Management
Add a Work Log:
wlog add -p <project-id|project-name> <hours> <log-note...>Example:
wlog add -p 1 2 "Worked on the new feature"Edit a Work Log:
wlog edit <log-id> [--hours <hours>] [--note <note>] [--date <date>] [--project <project-id|project-name>]Example:
wlog edit 1 --hours 3 --note "Updated the feature"Delete a Work Log:
wlog rm <log-id>
3. View Work Logs
- View All Logs in a Table:
wlog table
4. Submission
- Submit a Work Log:
wlog submit <log-id>
5. Help and Version
Display Help:
wlog help [<subcommand>]Check Version:
wlog version
Options
-v: Enable verbose mode.-nc: Disable colored output.
Examples
Add a Project:
wlog project "Website Redesign"Add a Work Log:
wlog add -p "Website Redesign" 4 "Designed the homepage layout"Edit a Work Log:
wlog edit 1 --hours 5 --note "Updated the homepage layout"View All Logs:
wlog tableDelete a Project:
wlog project --remove 1
Database
The application uses a SQLite database stored in the user's home directory under ~/.wlog/database.sqlite. This ensures all logs and projects are persisted across sessions.
Contributing
Contributions are welcome! Please open an issue or submit a pull request on the GitHub repository.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Author
Your Name
- GitHub: mktawileh
- Email: [email protected]
Enjoy tracking your work logs with wlog! 🚀
