Metadata-Version: 2.4
Name: todowrite_cli
Version: 0.6.1
Summary: CLI interface for ToDoWrite - A tool for managing complex software projects
Project-URL: Homepage, https://todowrite.davidderyldowney.com
Project-URL: Repository, https://github.com/dderyldowney/todowrite
Project-URL: Documentation, https://todowrite.davidderyldowney.com
Project-URL: Bug Tracker, https://github.com/dderyldowney/todowrite/issues
Author-email: D Deryl Downey <dderyldowney@gmail.com>
License: MIT
License-File: LICENSE
Keywords: cli,commands,concepts,goals,management,project,task,tasks,todo
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: User Interfaces
Classifier: Topic :: System :: Shells
Classifier: Topic :: Utilities
Requires-Python: >=3.12
Requires-Dist: click>=8.0.0
Requires-Dist: rich>=13.0.0
Requires-Dist: todowrite>=0.2.0
Provides-Extra: dev
Requires-Dist: bandit>=1.7.0; extra == 'dev'
Requires-Dist: pre-commit>=3.0.0; extra == 'dev'
Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
Requires-Dist: pytest>=7.0.0; extra == 'dev'
Requires-Dist: ruff>=0.7.0; extra == 'dev'
Requires-Dist: uv>=0.5.0; extra == 'dev'
Provides-Extra: postgres
Requires-Dist: psycopg2-binary>=2.9.0; extra == 'postgres'
Description-Content-Type: text/markdown

# ToDoWrite CLI Interface - (todowrite_cli)

**Package Type**: `cli` | **Package Name**: `todowrite-cli` | **Status**: ✅ Published

A command-line interface for managing complex software projects with hierarchical task management through Goals, Tasks, Concepts, and Commands.

## 🚀 Installation

### From PyPI (Recommended)
```bash
pip install todowrite-cli
```

### With PostgreSQL Support
```bash
pip install 'todowrite-cli[postgres]'
```

### Development Installation
```bash
git clone https://github.com/dderyldowney/todowrite.git
cd todowrite/cli_package
pip install -e .[dev]
```

### Version Information
- **Current Version**: Synchronized with `todowrite` library
- **Version Lock**: Always published together with core library
- **Dependencies**: Requires `todowrite` library
- **Python Requirements**: 3.12+

## 📦 Package Context

This is the **CLI interface** package of the ToDoWrite monorepo:

```
todowrite/                          # Monorepo root
├── lib_package/                    # Core library (dependency)
├── cli_package/                   # ✅ This package (CLI Interface)
│   ├── src/todowrite_cli/         # CLI source code
│   └── README.md                  # This documentation
├── web_package/                   # Web application (separate)
└── docs/                          # Project documentation
```

### Package Relationships
- **Dependencies**: `lib_package` (todowrite)
- **Version Locked**: Always published with same version as core library
- **Semantic Scope**: Uses `cli` scope for commits

## Quick Start

### Initialize a project

```bash
todowrite init
```

### Create a Goal

```bash
todowrite create --layer goal --title "Implement User Authentication" --description "Create secure user authentication system"
```

### Create a Task

```bash
todowrite create --layer task --title "Design Database Schema" --description "Design and implement database schema for users"
```

### Create a Concept

```bash
todowrite create --layer concept --title "OAuth2 Flow" --description "OAuth2 authentication flow implementation"
```

### Create a Command

```bash
todowrite create --layer command --title "Build Project" --description "Build the entire project"
```

### Link Nodes

```bash
# Use the update command to add parent-child relationships
todowrite update --id "TSK-001" --add-parent "GOAL-001"
```

### Update Progress

```bash
todowrite update --id "TSK-001" --status in_progress --progress 50
```

### View Project Status

```bash
todowrite list
todowrite get --id "GOAL-001"
```

### Import/Export YAML

```bash
todowrite import-yaml
todowrite export-yaml
```

## Commands

### Project Management
- `init` - Initialize a new project
- `create` - Create new nodes (goals, tasks, concepts, commands)
- `get` - Get a specific node by ID
- `list` - List all nodes with their status
- `status show` - Show detailed information about a specific node

### Status Management
- `status update` - Update node status and progress
- `status complete` - Mark a node as completed
- `status list` - List all nodes with their status

### Import/Export
- `import-yaml` - Import nodes from YAML files
- `export-yaml` - Export nodes to YAML files
- `sync-status` - Check synchronization status between YAML files and database

### Database Management
- `db-status` - Show storage configuration and status

## Configuration

Configuration is stored in `~/.todowrite/config.yaml`:

```yaml
database:
  default_path: "./todowrite.db"
  storage: "sqlite"  # or "postgresql"

yaml:
  base_path: "./configs"

ui:
  colors: true
  table_format: "fancy_grid"
```

## Development

### Setup Development Environment

```bash
git clone https://github.com/dderyldowney/todowrite.git
cd todowrite/cli_package
pip install -e .[dev]
```

### Run Tests

```bash
pytest tests/
```

### Run Linters

```bash
black .
isort .
flake8 .
pyright .
```

### Pre-commit Hooks

```bash
pre-commit install
```

## Contributing

1. Fork the repository
2. Create a feature branch
3. Make your changes
4. Run tests and linters
5. Submit a pull request

## License

MIT License - see LICENSE file for details.
