Cox-Automotive / alks-cli

CLI for working with the ALKS service.
MIT License
40 stars 30 forks source link

Windows Users using GitBash Need Export Not Set #141

Open say25 opened 4 years ago

say25 commented 4 years ago

On Windows when using GitBash, Linux terminology export is used instead of set.

Ideally we would provide the ability to set an override setting to use Export over Set.

Example: https://github.com/Cox-Automotive/alks-cli/blob/de622cc267f90dd9e85c28cd8d79a558207f91f2/lib/keys.js#L256

aaron-seitz commented 4 years ago

To gather more info, most users on Windows are utilizing Powershell without issue - is there a reason that you cannot utilize Powershell in this use case?

say25 commented 4 years ago

I mean yea I can use Powershell but there are other cons. For example, we have bash scripts that are used cross OS that are easier to implement in bash (yes with Powershell Core you can have powershell on Linux and macOS but it is less popular). So in a bash shell, I can be running some commands, get to a point when I need to re-login and basically have to switch to Chrome to get the bash exports because calling alks ... will give me Powershell specific commands