{"id":19388996,"url":"https://github.com/lemutec/flucli","last_synced_at":"2026-01-31T02:01:39.177Z","repository":{"id":261918524,"uuid":"853485982","full_name":"lemutec/Flucli","owner":"lemutec","description":"Library for interacting with external command-line interfaces.","archived":false,"fork":false,"pushed_at":"2024-11-10T18:51:28.000Z","size":55,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T03:58:38.394Z","etag":null,"topics":["fluent-cli","fluent-process"],"latest_commit_sha":null,"homepage":"","language":"C#","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/lemutec.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,"zenodo":null}},"created_at":"2024-09-06T18:50:38.000Z","updated_at":"2024-11-10T18:47:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"f559dad1-e482-473f-ba5e-6a323ed1c30a","html_url":"https://github.com/lemutec/Flucli","commit_stats":null,"previous_names":["lemutec/flucli"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/lemutec/Flucli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemutec%2FFlucli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemutec%2FFlucli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemutec%2FFlucli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemutec%2FFlucli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lemutec","download_url":"https://codeload.github.com/lemutec/Flucli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemutec%2FFlucli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28926630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T22:32:35.345Z","status":"online","status_checked_at":"2026-01-31T02:00:09.179Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["fluent-cli","fluent-process"],"created_at":"2024-11-10T10:14:20.882Z","updated_at":"2026-01-31T02:01:39.173Z","avatar_url":"https://github.com/lemutec.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NuGet](https://img.shields.io/nuget/v/Flucli.svg)](https://nuget.org/packages/Flucli) [![GitHub license](https://img.shields.io/github/license/lemutec/Flucli)](https://github.com/lemutec/Flucli/blob/master/LICENSE) [![Actions](https://github.com/lemutec/Flucli/actions/workflows/library.nuget.yml/badge.svg)](https://github.com/lemutec/Flucli/actions/workflows/library.nuget.yml)\n\n# Flucli\n\nLibrary for interacting with external command-line interfaces.\n\nPorted from [CliWrap](https://github.com/Tyrrrz/CliWrap) and support `.netstandard 2.0` without other dependencies.\n\nSupport `Verb=\"runas\"` and simplify some APIs.\n\n## Usage\n\n### Command\n\n```c#\nCliResult result = await \"cmd\"\n    .WithArguments(\"/c echo Hello World!\")\n    .ExecuteAsync();\n\nConsole.WriteLine(\"ExitCode is \" + result.ExitCode);\n```\n\n### Piper\n\n```c#\nStringBuilder stdout = new();\nStringBuilder stderr = new();\n\nvar command1 = \"cmd\"\n    .WithArguments(\"/c echo Hello World!\");\n\nvar command2 = \"cmd\"\n    .WithArguments(\"/c findstr o\")\n    .WithStandardOutputPipe(PipeTarget.ToStringBuilder(stdout, Encoding.UTF8))\n    .WithStandardErrorPipe(PipeTarget.ToStringBuilder(stderr, Encoding.UTF8));\n\nCliResult result = await (command1 | command2).ExecuteAsync();\n\nConsole.WriteLine(\"STDOUT: \" + stdout.ToString());\nConsole.WriteLine(\"STDERR: \" + stderr.ToString());\nConsole.WriteLine(\"ExitCode is \" + result.ExitCode);\n```\n\n### Parser\n\n```c#\nStringBuilder stdout = new();\nStringBuilder stderr = new();\n\nCli command = \"cmd /c echo Follow | cmd /c findstr F | cmd /c findstr l*\"\n    .ParseCli()\n    .PipeTail // Switch to tail command\n    .WithStandardOutputPipe(PipeTarget.ToStringBuilder(stdout, Encoding.UTF8))\n    .WithStandardErrorPipe(PipeTarget.ToStringBuilder(stderr, Encoding.UTF8))\n    .PipeHeader; // Switch to header command\n\nCliResult result = await command.ExecutePipeAsync();\n\nConsole.WriteLine(\"STDOUT: \" + stdout.ToString());\nConsole.WriteLine(\"STDERR: \" + stderr.ToString());\nConsole.WriteLine(\"ExitCode is \" + result.ExitCode);\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemutec%2Fflucli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flemutec%2Fflucli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemutec%2Fflucli/lists"}