{"id":26591596,"url":"https://github.com/ianovir/clim_dotnet","last_synced_at":"2026-04-20T13:02:27.470Z","repository":{"id":46048214,"uuid":"319685628","full_name":"ianovir/CLIM_dotnet","owner":"ianovir","description":"Command line interface menu engine for .NET core","archived":false,"fork":false,"pushed_at":"2021-11-17T22:09:39.000Z","size":78,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-27T02:59:51.968Z","etag":null,"topics":["cli","dotnet-core","dotnetcore","menus"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ianovir.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":"2020-12-08T15:47:35.000Z","updated_at":"2025-10-07T12:59:05.000Z","dependencies_parsed_at":"2022-09-09T09:00:12.855Z","dependency_job_id":null,"html_url":"https://github.com/ianovir/CLIM_dotnet","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ianovir/CLIM_dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianovir%2FCLIM_dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianovir%2FCLIM_dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianovir%2FCLIM_dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianovir%2FCLIM_dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ianovir","download_url":"https://codeload.github.com/ianovir/CLIM_dotnet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianovir%2FCLIM_dotnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32048444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"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","dotnet-core","dotnetcore","menus"],"created_at":"2025-03-23T14:18:41.758Z","updated_at":"2026-04-20T13:02:27.423Z","avatar_url":"https://github.com/ianovir.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"CLIM for .NET\n=======\n\nCommand line interface menu (CLIM) engine for .NET core and .NET Framework offers a very simple system to manage UI menus via the cli.\n\n![p1](https://github.com/ianovir/CLIM_dotnet/blob/main/pics/ctrl_console.jpg)\n\n# Motivation\n\nCLIM may be useful when prototyping core libraries in their early stage, in absence of advanced GUI yet. For example, when you are developing core component for multi-platform environments and you need to use or distribute it in its early stage.\n\n# Download\n\nYou can download the last compiled version of `CLIM` from the [releases](https://github.com/ianovir/CLIM_dotnet/releases) page, or import it from nuget.\n\n## Nuget\nFor .NET core projects:\n```\nPM\u003e Install-Package CLIM\n``` \n\nFor .NET Framework projects:\n```\nPM\u003e Install-Package CLIM_FW\n``` \n\n## .NET CLI\nFor .NET core projects:\n```\n\u003e dotnet add package CLIM\n```\nFor .NET Framework projects:\n```\n\u003e dotnet add package CLIM_FW\n```\n\n# Usage\n\nSee the `Program.cs` inside the CLIM Demo project for a simple example.\n\n## Overview\n\nThe main components of CLIM are:\n* Engine\n* Menu\n* Entry\n* Streams\n\n### Engine\n`Engine` is the main component organizing menus, printing to `IOutputStream` and reading from `InputStream`. Basically, an `Engine` wraps a Stack collection of menus and allows navigation across them.\n\nTo create a new engine:\n```csharp\nEngine engine = new Engine(\"CLIM DEMO\");\n```\n\nTo start the engine:\n```csharp\nengine.Start();\n```\n\nTo wait for the engine to terminate its execution (blocking call):\n```csharp\nengine.Wait();\n```\n\n### Menu\nA `Menu` is a list of entries.\n\nTo create a menu:\n```csharp\nMenu mainMenu = new Menu(\"Main menu\", engine);\n```\n\nThen add as many entries as you want:\n```csharp\nmainMenu.AddEntry(newEntry);\n```\n\nOr add a sub-menu as entry:\n```csharp\nMenu secondMenu = new Menu(\"Second menu\", \"cancel\");\n//...\nmainMenu.AddSubMenu(secondMenu);\n```\n\nFinally add the menu to the engine:\n```csharp\nengine.AddOnTop(mainMenu);\n```\n\nA manu can easily be created with:\n```csharp\nMenu myMenu = engine.BuildMenuOnTop(\"Menu title\");\n```\n\n### Entry\nAn `Entry` represents an option the user can choose. You need to implement the `OnAction()` action of an entry in order to specify its action.\n\nTo create an Entry:\n```csharp\nEntry newEntry = new Entry(\"Entry name\", () =\u003e{\n\t\t//implement entry's action...\n\t}\n);\n```\n\nor by using Menu:\n```csharp\nEntry newEntry = menu.AddEntry(\"Entry name\", ()=\u003e{/**do stuff**/});\n```\nChange Entry's visibility to hide/show it on menu list.\n\n### Streams\nCLIM's `Stream` is an object used for streaming input and output data. By default, the `Engine` uses `ScannerInputStream` and `SystemOutputStream` which uses the standard Console. You can define your custom streams by implementing the `InputStream` and `IOutputStream` classes.\n\nIt is possible to assign custom streams to the engine:\n```csharp\nengine.InputStream = customInputStream;\nengine.OutStream = customOutputStream;\n```\n\n# Copyright\nCopyright(c) 2021 Sebastiano Campisi - [ianovir.com](https://ianovir.com). \nRead LICENSE file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianovir%2Fclim_dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fianovir%2Fclim_dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianovir%2Fclim_dotnet/lists"}