Skip to content

Add support for go code blocks #118

@fr12k

Description

@fr12k

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! 🚀

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions