Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "sam" script for bash on windows #3589

Open
juniorgasparotto opened this issue Jan 15, 2022 · 4 comments
Open

Add "sam" script for bash on windows #3589

juniorgasparotto opened this issue Jan 15, 2022 · 4 comments
Labels
maintainer/need-followup stage/pm-review Waiting for review by our Product Manager, please don't work on this yet type/feature Feature request

Comments

@juniorgasparotto
Copy link

Describe your idea/feature/enhancement

When using gitbash, on windows we are unable to run the command "sam"

Proposal

In the "C:\Program Files\Amazon\AWSSAMCLI\bin" folder, I suggest adding a new file called "sam" (no extension) with the following content:

DIR="$(dirname "${BASH_SOURCE[0]}")"  # get the directory name
"$DIR/../runtime/python.exe" -m samcli "$@"
@mildaniel mildaniel transferred this issue from aws/serverless-application-model Jan 17, 2022
@mildaniel mildaniel added the type/feature Feature request label Jan 17, 2022
@hawflau
Copy link
Contributor

hawflau commented Jan 19, 2022

Thanks for the feature request! We have a roadmap here, but we also try to take in popular feature requests based on 👍🏽 from the community. We will be adding this to our intake for prioritization.

@hawflau hawflau added the stage/pm-review Waiting for review by our Product Manager, please don't work on this yet label Jan 19, 2022
@hauntingEcho
Copy link

calling ${DIR}/sam.cmd $@ would work too, if the team doesn't want to worry about duplicating any of the Python call

@hauntingEcho
Copy link

hauntingEcho commented May 16, 2022

This can currently be worked around by adding alias sam='sam.cmd' to your .bashrc file. Relevant StackOverflow

@codeyourwayup
Copy link

alias sam='sam.cmd' works for me thanks///////////

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintainer/need-followup stage/pm-review Waiting for review by our Product Manager, please don't work on this yet type/feature Feature request
Projects
None yet
Development

No branches or pull requests

6 participants