Skip to content

Add support for go code blocks #118

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

Open
fr12k opened this issue Nov 28, 2024 · 0 comments
Open

Add support for go code blocks #118

fr12k opened this issue Nov 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@fr12k
Copy link

fr12k commented Nov 28, 2024

Title: Add support for Go commands in maskfile.md

Description:
First off, thanks for creating and maintaining mask! It's a fantastic tool for simplifying command-line workflows.

I’d love to see support for Go (go run, go build, etc.), similar to how mask currently supports Bash and Python. This would make mask even more versatile for Go developers who want to define repeatable scripts in maskfile.md without wrapping everything in shell scripts.
Proposed Feature

Allow defining Go-based commands in maskfile.md, similar to Python and Bash.
Example usage:

Run a Go script

run

package main

import "fmt"

func main() {
    fmt.Println("Hello from Go!")
}
  • Equivalent to running go run script.go for inline scripts or go run . for projects.

Benefits

  • Improves support for Go developers using mask.
  • Reduces the need for shell script wrappers.
  • Aligns with existing support for Bash and Python.

Would love to hear your thoughts on this! Let me know if there's anything I can do to help with this feature.

Thanks again for your work on mask! 🚀

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

Successfully merging a pull request may close this issue.

2 participants