adobe / adobe/aio-cli-plugin-runtime

enhance action create with env variables

Abierto
#116 2 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement help wanted
Lenguaje dominante
JavaScript
Estrellas
21
Forks
33
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**Describe the bug**
This was missed in the recently merged PR #103. The `-P` flag is overloaded to mean read params from file and read env from file. This is a copy/paste bug, the intent was to use `-E`.

https://github.com/adobe/aio-cli-plugin-runtime/pull/103/files#diff-6d51d7a8679a906a9bfdaf1a8b017006R207

Thanks to @purplecabbage for pointing this out. We were both surprised oclif didn't barf at this.

As an enhancement, Jesse also suggested supporting reading the value of an env var from the shell environemnt, so that you can do `... action create myAction -e FOO` which is syntactic sugar for `... action create myAction -e FOO $FOO`. I think this is neat/convenient (perhaps to be considered separately as an enhancement).

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Revisa el manejo de las opciones de action create en la ubicación enlazada en PR #103, centrándote en el indicador -P sobrecargado y en el indicador -E previsto. Confirma el comportamiento existente del archivo de parámetros y determina después si la búsqueda en el entorno del shell está incluida o se trata por separado; se considera terminado cuando los indicadores tienen comportamientos distintos y el uso del comando solicitado está cubierto por pruebas.

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

Evaluación

Stack tecnológico
javascript
Área
cli
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
38/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.