{"id":15473122,"url":"https://github.com/corona10/fuego","last_synced_at":"2025-04-12T17:12:39.315Z","repository":{"id":57523898,"uuid":"127533155","full_name":"corona10/fuego","owner":"corona10","description":"fuego is a library for automatically generating command line interfaces (CLIs) from function and struct.","archived":false,"fork":false,"pushed_at":"2019-07-31T05:32:56.000Z","size":896,"stargazers_count":39,"open_issues_count":3,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-12T17:12:33.284Z","etag":null,"topics":["cli","fire","go","golang","google","python"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/corona10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-31T13:12:09.000Z","updated_at":"2025-01-31T14:35:56.000Z","dependencies_parsed_at":"2022-09-16T18:51:59.950Z","dependency_job_id":null,"html_url":"https://github.com/corona10/fuego","commit_stats":null,"previous_names":["corona10/gofire"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corona10%2Ffuego","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corona10%2Ffuego/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corona10%2Ffuego/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corona10%2Ffuego/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/corona10","download_url":"https://codeload.github.com/corona10/fuego/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248602312,"owners_count":21131616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","fire","go","golang","google","python"],"created_at":"2024-10-02T02:43:59.340Z","updated_at":"2025-04-12T17:12:39.291Z","avatar_url":"https://github.com/corona10.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/corona10/fuego.svg?branch=master)](https://travis-ci.org/corona10/fuego)\n[![GoDoc](https://godoc.org/github.com/corona10/fuego?status.svg)](https://godoc.org/github.com/corona10/fuego)\n[![Go Report Card](https://goreportcard.com/badge/github.com/corona10/fuego)](https://goreportcard.com/report/github.com/corona10/fuego)\n[![Coverage Status](https://coveralls.io/repos/github/corona10/fuego/badge.svg?branch=master)](https://coveralls.io/github/corona10/fuego?branch=master)\n[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\n\n# fuego\n\u003e Inspired by Google [python-fire](https://github.com/google/python-fire)\n\nfuego is a library for automatically generating command line interfaces (CLIs) from function and struct.\n\n## Features\n* fuego is a simple way to create a CLI in Go.\n* fuego helps with exploring existing code or turning other people's code into a CLI. [[1]](_examples/example4.go)\n* fuego shows documentation of each method or functions for help.\n\n## Installation\n```bash\ngo get github.com/corona10/fuego\n```\n\n## TODO\n- Support flag options\n- More error handling\n- Support more types\n\n[![asciicast](https://asciinema.org/a/nSnLXpwctZtQgpNJ4u8zKTYdR.png)](https://asciinema.org/a/nSnLXpwctZtQgpNJ4u8zKTYdR)\n\n## [Examples](/_examples)\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/corona10/fuego\"\n)\n\nfunc Add(a int, b int) (int, int) {\n\tfmt.Println(a, b)\n\treturn a + b, 2*a + b\n}\n\nfunc main() {\n\tfuego.Fire(Add)\n}\n```\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/corona10/fuego\"\n)\n\ntype Sample struct {\n\tName string\n}\n\nfunc (s Sample) Add(a, b int) int {\n\treturn a + b\n}\n\nfunc (s Sample) Minus(a, b int) int {\n\treturn a - b\n}\n\nfunc (s Sample) HelloWorld() {\n\tfmt.Println(s.Name)\n\tfmt.Println(\"Hello world!\")\n}\n\nfunc main() {\n\tvar s Sample\n\ts.Name = \"test\"\n\tfuego.Fire(s)\n}\n```\n\n## Special thanks to\n* [Haeun Kim](https://github.com/haeungun/)\n* [Sebastien Binet](https://github.com/sbinet): The contributor who proposed the name fuego.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorona10%2Ffuego","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorona10%2Ffuego","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorona10%2Ffuego/lists"}