aws / aws/aws-cli

Add PowerShell support for aliases

Open
#4,285 2 comments 0 reactions 0 assignees View on GitHub
feature-request p3
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

The current alias file syntax supports only bash syntax and is not compatible with Windows. For example, the example provided at https://github.com/awslabs/awscli-aliases define the function 'f' in bash compatible notation. See the below example for the alias 'myip' which would be stored in ~/.aws/cli/alias:
```bash
myip =
!f() {
dig +short myip.opendns.com @resolver1.opendns.com
}; f
```
When executed on a Windows host the following error is seen:
```bash
$ aws myip
'f' is not recognized as an internal or external command,
operable program or batch file.
```
A suggested resolution is in the pull request at https://github.com/aws/aws-cli/pull/4284 where PowerShell is used for the alias external command.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.