Skip to content

fix: simplify cli run#577

Merged
cristipufu merged 1 commit into
mainfrom
fix/cli_run_simple
Sep 15, 2025
Merged

fix: simplify cli run#577
cristipufu merged 1 commit into
mainfrom
fix/cli_run_simple

Conversation

@cristipufu

@cristipufu cristipufu commented Sep 15, 2025

Copy link
Copy Markdown
Member

Description

This PR simplifies the CLI run functionality by removing intermediate abstraction layers and inlining the execution logic directly into the main run command. The refactoring eliminates two helper functions (python_run_middleware and run_core) and their associated return type handling.

@cristipufu cristipufu self-assigned this Sep 15, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR simplifies the CLI run functionality by removing intermediate abstraction layers and inlining the execution logic directly into the main run command. The refactoring eliminates two helper functions (python_run_middleware and run_core) and their associated return type handling.

  • Removes python_run_middleware and run_core functions to reduce code complexity
  • Inlines execution logic directly into the run command function
  • Simplifies error handling by using console methods instead of middleware return patterns

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/uipath/_cli/cli_run.py Removes helper functions and inlines execution logic into main run command
src/uipath/_cli/_runtime/_contracts.py Minor formatting change to traceback display

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/uipath/_cli/cli_run.py
Comment thread src/uipath/_cli/cli_run.py
Comment thread src/uipath/_cli/cli_run.py
@cristipufu cristipufu merged commit e7c2b45 into main Sep 15, 2025
16 checks passed
@cristipufu cristipufu deleted the fix/cli_run_simple branch September 15, 2025 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants