Skip to content

Conversation

Sebbev
Copy link

@Sebbev Sebbev commented Sep 17, 2025

Resolves #9

This pull request updates the environment selection flow for both the env pull and env push CLI commands to improve usability and accuracy. Now, users are prompted to select an environment first, and subsequent service choices are filtered based on the selected environment, ensuring only relevant applications and compose services are shown.

Environment selection improvements:

  • Added an interactive prompt for users to select an environment before choosing a service in both env/pull.ts and env/push.ts commands. This ensures that only services belonging to the selected environment are displayed. [1] [2]

Service selection filtering:

  • Updated the service selection logic to filter applications and compose services based on the chosen environment, rather than showing all services from the project. [1] [2]

User messaging:

  • Corrected the service selection prompt message in env/push.ts to accurately reflect the push operation.

@Sebbev Sebbev marked this pull request as ready for review September 17, 2025 14:32
@Copilot Copilot AI review requested due to automatic review settings September 17, 2025 14:32
Copy link

@Copilot 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 adds environment selection functionality to the env pull and env push commands, allowing users to first select an environment and then only see services belonging to that environment. This improves the user experience by filtering out irrelevant services and ensures users work with the correct environment context.

  • Added interactive environment selection prompts before service selection in both commands
  • Updated service filtering to show only applications and compose services from the selected environment
  • Corrected the service selection message in the push command to accurately reflect the push operation

Reviewed Changes

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

File Description
src/commands/env/push.ts Added environment selection prompt and updated service filtering to use selected environment instead of all project services
src/commands/env/pull.ts Added environment selection prompt and updated service filtering to use selected environment instead of all project services

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

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.

TypeError when running 'dokploy env pull' with environment file
1 participant