carapace-sh / carapace

command argument completion generator for spf13/cobra
https://carapace.sh
Apache License 2.0
290 stars 8 forks source link

context: local Env #927

Closed rsteube closed 9 months ago

rsteube commented 9 months ago

Current Behavior

For ActionExecute to function correctly environment must be passed on instead of directly using os.Environ. Also affects access to other environment variables.

Expected Behavior

Set Context.Env as annotation to command and use it if available.

Steps To Reproduce

No response

Version

No response

OS

Shell

Anything else?

caused by https://github.com/rsteube/carapace/pull/924