script

Making it easy to write shell-like scripts in Go (by bitfield)

Script Alternatives

Similar projects and alternatives to script

  1. go

    2,255 script VS go

    The Go programming language

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. kubernetes

    Production-Grade Container Scheduling and Management

  4. ShellCheck

    499 script VS ShellCheck

    ShellCheck, a static analysis tool for shell scripts

  5. Nim

    356 script VS Nim

    Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).

  6. fish-shell

    The user-friendly command line shell.

  7. oils

    262 script VS oils

    Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!

  8. fd

    190 script VS fd

    A simple, fast and user-friendly alternative to 'find'

  9. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  10. SDKMan

    167 script VS SDKMan

    The SDKMAN! Command Line Interface

  11. murex

    63 script VS murex

    A smarter shell and scripting environment with advanced features designed for usability, safety and productivity (eg smarter DevOps tooling)

  12. logrus

    42 script VS logrus

    Structured, pluggable logging for Go.

  13. Silk.NET

    The high-speed OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, WebGPU, and DirectX bindings library your mother warned you about.

  14. go-plugin

    Golang plugin system over RPC.

  15. goja

    29 script VS goja

    ECMAScript/JavaScript engine in pure Go

  16. expr

    24 script VS expr

    Discontinued Expression language and expression evaluation for Go [Moved to: https://github.com/expr-lang/expr] (by antonmedv)

  17. starlark-go

    Starlark in Go: the Starlark configuration language, implemented in Go

  18. mapstructure

    Discontinued Go library for decoding generic map values into native Go structures and vice versa.

  19. bu

    16 script VS bu

    B)asic|But-For U)tility Code/Programs (in Nim & Often Unix/POSIX/Linux Context)

  20. Go Metrics

    Go port of Coda Hale's Metrics library

  21. Gitea

    290 script VS Gitea

    Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD

  22. risor

    Fast and flexible scripting for Go developers and DevOps.

  23. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better script alternative or higher similarity.

script discussion

Log in or Post with

script reviews and mentions

Posts with mentions or reviews of script. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-04-15.
  • Goscript: Go For (go-pher?) Scripting
    2 projects | dev.to | 15 Apr 2025
    Goscript is an opinionated tool aimed at making scripting in Go more convenient. It was inspired by bitfield/script, which brings functionality similar to Unix pipes to Go. By opinionated, I mean that Goscript embraces Go modules (rather than GOPATH with modules turned off) and uses a dedicated module project for your "scripts". It asks you to update your PATH as part of the setup so that your scripts can be immediately available as system-wide commands. It enables treating Go code like a local script with --exec and shebang options, but encourages reuse by letting you name your commands and then saving them, together with source, in your dedicated Goscript project. Finally, its many options are designed to make the project fade into the background and make writing scripts in Go convenient and easy like your favorite scripting language.
  • Shell-ish scripting in Go with ease
    2 projects | news.ycombinator.com | 31 Jan 2025
  • Script: Making it easy to write shell-like scripts in Go
    1 project | news.ycombinator.com | 31 Dec 2024
  • Making it easy to write shell-like scripts in Go
    1 project | news.ycombinator.com | 5 Sep 2024
  • Go is my hammer, and everything is a nail
    24 projects | news.ycombinator.com | 12 Aug 2024
  • Using ARG in a Dockerfile – beware the gotcha
    3 projects | news.ycombinator.com | 14 May 2024
    That's why I plan on migrating all my shell scripts to Golang programs f.ex. using https://github.com/bitfield/script -- it already has a number of simulations of shell commands and I'd contribute others if I had the time.

    sh / bash / zsh scripts are just fragile and that's the inconvenient truth. People who devised the shell interpreters had good intentions but ultimately their creations grew to a scope 1000x bigger than they intended, hence all the "do X but if Y flag is set then do Z... unless flag A is also set in which case do Y and part of Z".

    It's horrendous and I seriously don't get what's so difficult in just coding these scripts in a programming language that provides single statically linked binaries (like Golang) and just distribute it with your images -- or run them in CI/CD and have init containers and never include them in the images in the first place.

    Inertia, of course. But I'll be actively working against it until I retire.

  • GNU Parallel, where have you been all my life?
    19 projects | news.ycombinator.com | 21 Aug 2023
    I use Go. You can run scripts with go run directly, and this package makes shell tasks easy: https://github.com/bitfield/script
  • Scripting with Go: A Modest Proposal
    8 projects | news.ycombinator.com | 20 Aug 2023
    If you're not deeply familiar with Go there is one detail missing from this post (though it's in the script README) - what a complete program looks like. Here's the example from https://github.com/bitfield/script#a-realistic-use-case

        package main
  • 'script' is for writing shell-like pipelines in Go
    1 project | news.ycombinator.com | 28 Apr 2023
  • script
    1 project | /r/devopspro | 18 Jan 2023
  • A note from our sponsor - InfluxDB
    influxdata.com | 26 Apr 2025
    Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems. Learn more →

Stats

Basic script repo stats
17
6,544
6.3
about 1 month ago

bitfield/script is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of script is Go.


Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that Go is
the 4th most popular programming language
based on number of references?