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

mechanism to build shell scripts into the binary #750

Open
andychu opened this issue May 11, 2020 · 2 comments
Open

mechanism to build shell scripts into the binary #750

andychu opened this issue May 11, 2020 · 2 comments

Comments

@andychu andychu added the stdlib label May 11, 2020
@andychu andychu mentioned this issue May 11, 2020
9 tasks
@andychu
Copy link
Contributor Author

andychu commented May 22, 2020

Also #587

@andychu
Copy link
Contributor Author

andychu commented Jul 7, 2020

I like this one too:

https://samizdat.dev/help-message-for-shell-scripts/

help() {
    sed -rn 's/^### ?//;T;p' "$0"
}

Although the ### interferes with our docstrings? could be ## ? Or maybe it's just the leading one.

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

1 participant