{"id":73731,"library":"shomali11-commander","title":"Commander","description":"A Go library for building command-line interfaces with subcommands and flags.","status":"active","version":"0.0.0-20230730023802-0b64f620037d","language":"go","source_language":null,"source_url":"https://github.com/shomali11/commander","tags":["cli","commands","flags"],"install":[{"cmd":"go get github.com/shomali11/commander","lang":"bash","label":"Install github.com/shomali11/commander"}],"dependencies":[],"imports":[{"symbol":"commander","correct":"github.com/shomali11/commander"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/shomali11/commander\"\n)\n\nfunc main() {\n\tcmd := commander.NewCommand(\"greet\")\n\tcmd.Flag(\"name\", \"World\")\n\tcmd.Action(func(args []string, flags map[string]string) {\n\t\tfmt.Printf(\"Hello, %s!\\n\", flags[\"name\"])\n\t})\n\tcmd.Execute()\n}","lang":"go","description":"Define a simple CLI command with a flag."},"warnings":[],"env_vars":null,"search_vec":"'build':6 'cli':15 'command':1,8,16 'command-lin':7 'flag':14,17 'go':3 'interfac':10 'librari':4 'line':9 'subcommand':12","created_at":"2026-06-17T18:54:31.790950+00:00","updated_at":"2026-06-17T18:54:31.790950+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/shomali11/commander","github":"https://github.com/shomali11/commander","docs":"https://pkg.go.dev/github.com/shomali11/commander#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["cli"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}