On Windows 11 the terminal proprt apears before the prints

Đang mở
#89 1 bình luận 4 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
aws, python
Lĩnh vực
cli

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện hành vi của awslocal trên Windows 11 trong cả CMD và PowerShell, đặc biệt với AWS CLI configure command. So sánh với workaround PowerShell awsl đã được báo cáo và xác định prompt xuất hiện khi nào so với thời điểm lệnh hoàn tất. Được xem là hoàn thành khi awslocal chờ lệnh và dữ liệu nhập tương tác hoàn tất trước khi trả về prompt tiếp theo.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

It's a bit hard to explain the issue I'm facing so adding a print screen:
image

You can see that I get a prompt for the next command before the awslocal command has finished running.
This causes several issues when we have several inputs to enter one after another like the configure command of aws cli, in case I want to enter credentials.

image
You can see I got a prompt for the next command even though I'm supposed to be in the context of the first one.

I tried this on 2 different computers, both in CMD and Powershell.
Any ideas?
Is this a bug?

As a workaround, I added this to my Powershell Profile:

function awsl {
    param(
        [Parameter(ValueFromRemainingArguments = $true)]
        [string[]]$Args
    )
    aws @Args --profile local --endpoint-url http://localhost:4566
}

So instead of awslocal I'm my custom awsl at the end of each aws command (not only endpoint but also my custom aws-local profile).

Ngôn ngữ chính
Python
Star
1.3k
Fork
94
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của localstack/awscli-local

Tất cả issue của localstack/awscli-local

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.