On Windows 11 the terminal proprt apears before the prints

Open
#89 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
aws, python
Domain
cli

Research direction

Start by reproducing the awslocal behavior on Windows 11 in both CMD and PowerShell, especially with the AWS CLI configure command. Compare it with the reported PowerShell awsl workaround and determine when the prompt appears relative to command completion. Done means awslocal waits for the command and interactive input to finish before returning the next prompt.

Written by the indexing model from the issue text.

Description

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).

Dominant language
Python
Stars
1.3k
Forks
94
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from localstack/awscli-local

All issues in localstack/awscli-local

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.