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

Print command to terminal for verification #127

Open
BirdTho opened this issue Jun 14, 2022 · 0 comments
Open

Print command to terminal for verification #127

BirdTho opened this issue Jun 14, 2022 · 0 comments

Comments

@BirdTho
Copy link

BirdTho commented Jun 14, 2022

In the command, when I run it in Grunt, I see the command output, but I don't see the command input:
So I want to see the command as it will be run in the terminal, as if I typed it myself.

I want to make sure that the command and its templates are being substituted correctly. Somehow I figured stdin: true might do it, but actually that defaults to true.
When the grunt step runs for that command all I see is the result. What I want to see is the { command: 'your-command-here' } being printed out in its entirety, post-template-substitution.

I have command strings like this:

aws lambda update-function-code --function-name <%= config.userLambdaName %>-<%= config.stage.dev %> --zip-file fileb://<%= config.userLambdaBuildDir %>/zip/<%= config.userLambdaZipName %>

and I would like to see, for instance

aws lambda update-function-code --function-name abc123-dev --zip-file fileb://build/abc123/zip/abc123.zip

printed out on the console when running grunt deploy-user-lambda-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant