diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 79be355..d1bb195 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,9 +3,9 @@ repos: rev: v6.0.0 hooks: - id: trailing-whitespace - exclude: ^(client/|src/workato_platform/client/) + exclude: ^(client/|src/workato_platform_cli/client/) - id: end-of-file-fixer - exclude: ^(client/|src/workato_platform/client/) + exclude: ^(client/|src/workato_platform_cli/client/) - id: check-yaml - id: check-added-large-files - id: check-json @@ -17,9 +17,9 @@ repos: rev: v0.13.0 hooks: - id: ruff - exclude: ^(client/|src/workato_platform/client/) + exclude: ^(client/|src/workato_platform_cli/client/) - id: ruff-format - exclude: ^(client/|src/workato_platform/client/) + exclude: ^(client/|src/workato_platform_cli/client/) - repo: https://github.com/pre-commit/mirrors-mypy rev: v1.18.1 @@ -44,7 +44,7 @@ repos: pytest-mock>=3.10.0, prompt-toolkit>=3.0.0, ] - exclude: ^(client/|src/workato_platform/client/) + exclude: ^(client/|src/workato_platform_cli/client/) # pip-audit for dependency security auditing - repo: https://github.com/pypa/pip-audit diff --git a/docs/DEVELOPER_GUIDE.md b/docs/DEVELOPER_GUIDE.md index 6e6917d..b9c9784 100644 --- a/docs/DEVELOPER_GUIDE.md +++ b/docs/DEVELOPER_GUIDE.md @@ -41,9 +41,9 @@ workato --help 7. **Monitor** - Track execution with `workato recipes jobs` ## Project Structure -- `workato_platform/` - Main package with API client and utilities -- `workato_platform/cli/commands/` - Individual CLI command implementations -- `workato_platform/client/` - API client and data models +- `workato_platform_cli/` - Main package with API client and utilities +- `workato_platform_cli/cli/commands/` - Individual CLI command implementations +- `workato_platform_cli/client/` - API client and data models - `setup.py` - Package configuration with dependencies (click, requests, inquirer, pydantic) This CLI is specifically designed for AI-assisted development of Workato automation recipes, providing validation, connection management, and deployment capabilities. @@ -92,7 +92,7 @@ workato init pip show workato-platform-cli # If command still not found, try running directly: -python -m workato_platform.cli.main --help +python -m workato_platform_cli.cli.main --help ``` ## Contributing to the CLI diff --git a/scripts/parse_connection_docs.py b/scripts/parse_connection_docs.py index f13f37e..da60596 100644 --- a/scripts/parse_connection_docs.py +++ b/scripts/parse_connection_docs.py @@ -126,14 +126,14 @@ def main() -> None: input_file = Path(__file__).parent.parent / "connections-parameters.md" output_file = ( Path(__file__).parent.parent - / "workato_platform" + / "workato_platform_cli" / "cli" / "data" / "connection-data.json" ) output_simple = ( Path(__file__).parent.parent - / "workato_platform" + / "workato_platform_cli" / "cli" / "data" / "connection-data-simple.json" diff --git a/src/workato_platform_cli/cli/commands/recipes/validator.py b/src/workato_platform_cli/cli/commands/recipes/validator.py index 4e1621f..0c5e6b5 100644 --- a/src/workato_platform_cli/cli/commands/recipes/validator.py +++ b/src/workato_platform_cli/cli/commands/recipes/validator.py @@ -408,7 +408,7 @@ def __init__( # Cache settings self._cache_file = ( - Path.home() / ".workato_platform" / "cli" / "connector_cache.json" + Path.home() / ".workato_platform_cli" / "cli" / "connector_cache.json" ) self._cache_ttl_hours = 24 # Cache for 24 hours self._last_cache_update = None