Inhouse Ten CLI
Project description
Here's a descriptive README.md file for your CLI tool, explaining the commands and usage.
Kamla-CLI
Kamla-CLI is an in-house command-line interface (CLI) tool for managing tasks, projects, and users. It provides various commands to log in, view user information, list data (projects, tasks, users, plans), create tasks, and mark task statuses (active, ongoing, completed).
Features
- Login: Authenticate yourself with the API.
- Get User Data: Retrieve your user information after logging in.
- List Projects, Tasks, Users, Plans: Fetch and display various data.
- Create Tasks: Add tasks to specific projects with due dates and descriptions.
- Mark Task Status: Update the status of tasks (active, ongoing, or completed).
Installation
You can install Kamla-CLI using pip:
pip install kamla-cli
Usage
Once installed, you can run the CLI using the command:
kamla-cli [COMMAND] [OPTIONS]
Commands
Below are the detailed descriptions of the available commands.
login
Login to the system with your email and password. If either is not provided, you will be prompted to enter them.
Example:
kamla-cli login --email john@acme.com --password MyPassword
You can also enter your email and password interactively
kamla-cli login
me
Get the logged-in user's details.
Example:
kamla-cli me
list
Lists data such as projects, tasks, users, or plans.
- Type: You must specify the type of list (projects, tasks, users, plans).
- Category: Optional for listing tasks (default is "ongoing").
Example:
# List all projects
kamla-cli list projects
# List all users
kamla-cli list users
# List all ongoing tasks
kamla-cli list tasks
# List tasks with optional category {ongoing, completed, incomplete} (comma separated)
kamla-cli list tasks --category "completed,ongoing"
# List the logged in user's today's task
kamla-cli list plan
#
create
Create new tasks for a specified project. You will be prompted for details like the Project ID, due date, resources, and description if not provided via command-line arguments.
Example:
# Create a task for the logged in user
# Task names will be promted interactively
kamla-cli create --pid {PROJECT_ID} --due 2024-12-31 --res "Resources" --desc "Description"
Alternatively, you can leave some fields out and enter them interactively when prompted:
kamla-cli create
mark
Marks tasks with a specific status. You can mark tasks as active, ongoing, or done.
Subcommands
-
active: Marks tasks as active. Baically it moves the task from taday's plan to the work plan section.
# Marks task with ID 101 as active under the category UI kamla-cli mark active 101 UI # User can input many task IDs at once separated by comma kamla-cli mark active "101,102" U!I # **Note**: If entering many task IDs, make sure to wrap them in double quotes or type task IDs without spaces # example: `kamla-cli mark active "101,102" U!I` or `kamla-cli mark active 101,102 U!I` # but not `kamla-cli mark active 101, 102 U!I`
Categories are
UI,U!I,!UI,!U!I -
ongoing: Marks tasks as ongoing. It takes the task from the work plan section and moves it to the ongoing section.
# Marks task with ID 101 as ongoing kamla-cli mark ongoing "101,102"
-
done: Marks tasks as completed. Moves the task from the ongoing section to the completed section.
# Marks task with ID 101 and 102 as completed kamla-cli mark done "101,102"
For active, provide both task IDs and category. For ongoing and done, only task IDs are required.
about
Displays information about the CLI, including version and author details.
Example:
kamla-cli about
License
Kamla-CLI is licensed under the MIT License. Feel free to use and modify it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kamla_cli-0.1.0.tar.gz.
File metadata
- Download URL: kamla_cli-0.1.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b3c85a74adce10e43e7e12d2d6c9bb0c56c976802ab8d570f88305bae18df33
|
|
| MD5 |
523dc4737121971d423bad7f5f98bf13
|
|
| BLAKE2b-256 |
e3b031d7e261f9432d38f4173a2599e8143d2d8364d856216374a19ae2308602
|
File details
Details for the file kamla_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: kamla_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0706a77e8ed8209c2e1e3bd3795c8e4b7da1b1c65004a526677864efd58b8d6d
|
|
| MD5 |
ba2af6e1b3adf8e947baaeab6aa44124
|
|
| BLAKE2b-256 |
197a9a2674b4a5f591b919c4350b807f7274a9e8841409bf1a505500c0e2ae74
|