Pythonic task execution library for managing shell-oriented subprocesses and organizing executable Python code into CLI-invokable tasks
Overall
score
96%
Build a simple task automation script that uses configuration files to manage application settings.
Create a Python script that defines tasks for managing application settings. The tool should:
Your solution should work with the following configuration files:
invoke.yaml (default configuration):
app:
name: myapp
port: 8000
debug: true
deploy:
timeout: 30
backup: trueproduction.yaml (production overrides):
app:
port: 80
debug: false
deploy:
timeout: 60Implement the following tasks in a file named tasks.py:
@generates
from invoke import task
@task
def show_config(c):
"""Display current application configuration."""
pass
@task
def deploy(c):
"""Print deployment message using configuration."""
passProvides task execution and configuration management capabilities.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/pypi-invokedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10