or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/invoke@2.2.x
tile.json

tessl/pypi-invoke

tessl install tessl/pypi-invoke@2.2.0

Pythonic task execution library for managing shell-oriented subprocesses and organizing executable Python code into CLI-invokable tasks

Agent Success

Agent success rate when using this tile

96%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.25x

Baseline

Agent success rate without this tile

77%

task.mdevals/scenario-9/

Task Management CLI

Build a command-line task management system that organizes various development workflow tasks into logical namespaces.

Requirements

Your system should organize tasks into the following structure:

  1. Database tasks - Operations for database management

    • db.migrate - Run database migrations
    • db.seed - Seed the database with initial data
    • db.reset - Reset the database (clear all data)
  2. Testing tasks - Operations for running tests

    • test.unit - Run unit tests
    • test.integration - Run integration tests
    • test.all - Run all tests
  3. Deployment tasks - Operations for deploying the application

    • deploy.staging - Deploy to staging environment
    • deploy.production - Deploy to production environment

All tasks should accept a context parameter and print a message indicating what operation they would perform (no actual implementation needed).

The system should support:

  • Listing all available tasks in a hierarchical format
  • Running tasks using dotted notation (e.g., db.migrate)
  • Proper organization of related tasks into namespaces

Test Cases

  • Running the database migration task prints "Running database migrations" @test
  • Running the seed task prints "Seeding database with initial data" @test
  • Running the unit test task prints "Running unit tests" @test
  • The collection contains three sub-collections: db, test, and deploy @test

Implementation

@generates

API

# Main collection that organizes all tasks
# Should be importable and executable via CLI

Dependencies { .dependencies }

invoke { .dependency }

Provides task execution and organization capabilities.

@satisfied-by