Skip to main content

Inhouse Ten CLI

Project description

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


Download files

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

Source Distribution

kamla_cli-0.1.1.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kamla_cli-0.1.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file kamla_cli-0.1.1.tar.gz.

File metadata

  • Download URL: kamla_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for kamla_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9145f1bfe3c8793c1198f9c558b6aad06fe7635bc6fe2038483092065ca8f5aa
MD5 b0af8e5629c3b67773bd48a319a41c74
BLAKE2b-256 0bbe8e650d93f0430537c9d5be952d045ca8ffd216fb68eb92942411d28dd985

See more details on using hashes here.

File details

Details for the file kamla_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: kamla_cli-0.1.1-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

Hashes for kamla_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7b77da4aac0ea811d499a1bcd032027b0b36b061c9689a1e23610561a7859d2c
MD5 ff0c0f9e2f8bd7dfec8018221aa6d6f8
BLAKE2b-256 7bb5cf5e6584f63aedf1824d925bc85c1c588ac2e55eab0da389b13a92742513

See more details on using hashes here.

Supported by

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