Command Line Interface Generator tool for Go

Just released Gofire, a tool for Go that automatically generates a command line interface (CLI) for your functions and does all required plumbing in between, inspired by GitHub - google/python-fire: Python Fire is a library for automatically generating command line interfaces (CLIs) from absolutely any Python object..

  • Gofire uses code generation to generate simple and predictable CLI tailored to your code. It takes care about all required plumbing around parameters parsing, types casting, setting the entrypoint, documentation, etc.
  • Gofire provides multiple CLI backends with different capabilities and features, including: flag, cobra, bubbletea.
  • Gofire is opinionated about the defaults and always tries to provide simple and safe CLI. Yet, if needed, it supports optional go structs tag literals to flexibly configure CLI parameters.
2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.