Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix: simplify cli run#577

Merged
cristipufu merged 1 commit intomainUiPath/uipath-python:mainfrom
fix/cli_run_simpleUiPath/uipath-python:fix/cli_run_simpleCopy head branch name to clipboard
Sep 15, 2025
Merged

fix: simplify cli run#577
cristipufu merged 1 commit intomainUiPath/uipath-python:mainfrom
fix/cli_run_simpleUiPath/uipath-python:fix/cli_run_simpleCopy head branch name to clipboard

Conversation

@cristipufu
Copy link
Member

@cristipufu cristipufu commented Sep 15, 2025

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
Copy link

Copilot AI left a comment

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.

src/uipath/_cli/cli_run.py Show resolved Hide resolved
src/uipath/_cli/cli_run.py Show resolved Hide resolved
src/uipath/_cli/cli_run.py Show resolved Hide resolved
@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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.