{"id":37088106,"url":"https://github.com/n0sh4d3/mini-cli","last_synced_at":"2026-01-14T10:49:39.824Z","repository":{"id":250324881,"uuid":"833726355","full_name":"n0sh4d3/mini-cli","owner":"n0sh4d3","description":"Minimalistic library for parsing command line arguments. Written in Go","archived":false,"fork":false,"pushed_at":"2025-04-27T10:05:22.000Z","size":39,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-27T11:19:47.883Z","etag":null,"topics":["cli","go","golang","golang-package","library","minimalistic"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/n0sh4d3.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-25T16:07:57.000Z","updated_at":"2025-04-27T10:05:25.000Z","dependencies_parsed_at":"2025-02-19T11:49:00.039Z","dependency_job_id":"daf20bb1-2417-4eb3-ab60-0d3edcf2e1e6","html_url":"https://github.com/n0sh4d3/mini-cli","commit_stats":null,"previous_names":["mvstermind/mini-cli","n0sh4d3/mini-cli"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/n0sh4d3/mini-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0sh4d3%2Fmini-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0sh4d3%2Fmini-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0sh4d3%2Fmini-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0sh4d3%2Fmini-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n0sh4d3","download_url":"https://codeload.github.com/n0sh4d3/mini-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n0sh4d3%2Fmini-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28417716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","go","golang","golang-package","library","minimalistic"],"created_at":"2026-01-14T10:49:39.189Z","updated_at":"2026-01-14T10:49:39.818Z","avatar_url":"https://github.com/n0sh4d3.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎉 Mini Cli - The Teeny-Tiny Library for Mighty CLI Apps! 🚀\n\nWelcome to **Mini Cli**, the *itty-bitty, teeny-weeny* Go library that's small in size but **HUGE** in potential! It's your go-to toolkit for creating command-line apps with a minimalistic flair. Because why complicate things when you can keep it simple and snazzy? 😎\n\n## How to Dive In 🏊‍♂️\n\nWant to get started with **mini-cli**? Of course, you do! Just run this magical command and you're golden:\n\n```bash\ngo get github.com/mvstermind/mini-cli\n```\n\nBoom! You just snagged yourself a copy of the coolest CLI library in town. 🎉\n\n## How to Play 🎮\n\n### Simple Usage - The Bare Essentials 🛠️\n\nHere’s a basic example that’ll get you up and running with **Mini Cli** faster than you can say \"command-line interface!\"\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\tmini \"github.com/mvstermind/mini-cli\"\n)\n\nfunc main() {\n\t// Create a bunch of arguments (because one is never enough!)\n\tchange := mini.Arg{\n\t\tShortCmd: \"c\",\n\t\tLongCmd:  \"change\",\n\t\tUsage:    \"Example usage\",\n\t\tRequired: true, // This one’s important!\n\t}\n\n\tdel := mini.NewArg(\"c\", \"delete\", \"Deletes stuff\", true)\n\tundo := mini.NewArg(\"u\", \"undo\", \"Undo stuff\", true)\n\trevert := mini.NewArg(\"r\", \"revert\", \"Reverts stuff\", false)\n\n\t// Toss those arguments into your command soup\n\tcmds := mini.AddArguments(\u0026change, del, undo, revert)\n\n\t// Stir it all up and get those juicy argument values\n\targValues := cmds.Execute()\n\n\t// Spill the beans on what \"revert\" is all about\n\tfmt.Println(argValues[\"-r\"])\n}\n```\n\n### Why You'll Love It ❤️\n\n- **Minimalistic Magic:** Focuses on keeping things simple and easy-peasy. ✨\n- **Flexible as a Rubber Band:** Easily define and handle command-line arguments like a boss.\n- **Auto-generated Command List:** If you forget to pass those all-important flags, don’t sweat it! **mini-cli** has your back and will auto-generate a list of what you’re missing. 📝\n\n### Auto-generated Command List - The Safety Net 🕸️\n\nIf you skip out on those required flags, **mini-cli** will jump in and save the day by automatically listing what you need. Here’s a sneak peek of what that looks like:\n\n#### Example Output\n```\nRequired value that weren't included:\n-c | --change\n-d | --delete\n-u | --undo\n\nList of available commands:\n\n-c  --change\n    Example usage\n    Required: true\n\n-d  --delete\n    Deletes stuff\n    Required: true\n\n-u  --undo\n    Undo stuff\n    Required: true\n\n-r  --revert\n    Reverts stuff\n    Required: false\n```\n\nSee? No more excuses for missing flags! **Mini Cli** has got you covered. 🎯\n\n## Peek at Some Examples 👀\n\nWant more examples? Of course, you do! Check out our [examples section](https://github.com/mvstermind/mini-cli/tree/main/examples) for a treasure trove of cool tricks you can do with **mini-cli**.\n\n## Contributing - Join the Fun! 🎉\n\nWe love new ideas and improvements! If you want to jump into the **Mini Cli** madness, fork the repo, whip up some magic, and submit a pull request. Let’s make CLI apps awesome together! 💪\n\n## License to Chill 🎵\n\nThis project is licensed under the MIT License, so feel free to kick back, relax, and enjoy using **mini-cli** without a care in the world. 🏖️\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn0sh4d3%2Fmini-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn0sh4d3%2Fmini-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn0sh4d3%2Fmini-cli/lists"}