Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Shell for running README parsing build and deplpy commands #21

Open
SaketramDurbha opened this issue Aug 11, 2020 · 1 comment · May be fixed by #24
Open

Shell for running README parsing build and deplpy commands #21

SaketramDurbha opened this issue Aug 11, 2020 · 1 comment · May be fixed by #24

Comments

@SaketramDurbha
Copy link
Contributor

We originally didn't pass build and deploy commands for build and deploy commands parsed out of Markdown files through a shell was because Go's exec.Cmd interface doesn't automatically do it for us. But just recently found out that we can do something like this:

exec.Command("bash", "-c", "echo hello world")

And we could revise the code tag to include the shell we want to run the commands with instead: {sst-run-bash} instead of {sst-run-bash}. This way, we wouldn't have to expand environment variables ourselves either.

@SaketramDurbha
Copy link
Contributor Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant