localstack / localstack/awscli-local

On Windows 11 the terminal proprt apears before the prints

Abierto
#89 1 comentario 4 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
Python
Estrellas
1.3k
Forks
94
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

It's a bit hard to explain the issue I'm facing so adding a print screen:
![image](https://github.com/user-attachments/assets/d867c570-3fcf-4753-9555-5257914036d7)

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](https://github.com/user-attachments/assets/15145e68-f2ee-497f-9bbd-2850d8752fa9)
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:
```powershell
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).

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Empieza reproduciendo el comportamiento de awslocal en Windows 11 tanto en CMD como en PowerShell, especialmente con el AWS CLI configure command. Compáralo con la solución alternativa de PowerShell awsl indicada y determina cuándo aparece el prompt en relación con la finalización del comando. Se considera terminado cuando awslocal espera a que finalicen el comando y la entrada interactiva antes de devolver el siguiente prompt.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
aws, python
Área
cli
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.