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

cmd/shfmt: link to web demo or playground #941

Open
l0b0 opened this issue Nov 9, 2022 · 3 comments
Open

cmd/shfmt: link to web demo or playground #941

l0b0 opened this issue Nov 9, 2022 · 3 comments

Comments

@l0b0
Copy link

l0b0 commented Nov 9, 2022

shfmt is a great tool, and it would be fantastic if it was more widely adopted. Unfortunately many potential users don't have an easy way to run it: the only *nix machines they have access to are managed by others, and they don't have the expertise to set up something like a VM. To help those users out, I'm wondering if someone would be willing to host a playground like ShellCheck where users can simply paste their code and get a formatted version back in another part of the page.

@mvdan
Copy link
Owner

mvdan commented Nov 9, 2022

Not sure if I follow: the releases contain binaries for both Windows and Mac. There are also plugins that integrate the tool with IDEs like JetBrains, I believe.

Totally fine with me if someone hosts a site that acts as a web playground, though. Happy to link to it in the README.

@l0b0
Copy link
Author

l0b0 commented Nov 9, 2022

Not sure if I follow: the releases contain binaries for both Windows and Mac. There are also plugins that integrate the tool with IDEs like JetBrains, I believe.

A lot of people work in environments where they are not allowed to install any software whatsoever. A lot of people are also developers second, and an IDE is too complicated for what they are doing. So they effectively have no easy way to run shfmt, and a web site would be an excellent way to format the tiny handful of files they have to deal with.

@mvdan
Copy link
Owner

mvdan commented Nov 10, 2022

Sure, no disagreements there. Still happy to link to a website doing this if someone implements it. I don't have time for it myself in the short term.

@mvdan mvdan changed the title Feature request: shfmt web demo/playground cmd/shfmt: link to web demo or playground Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants