Micro-framework for .NET console application. Cocona makes it easy and fast to build console applications on .NET. Cocona has a mechanism called Parameter set that defines common parameters for multiple commands. For example, if every command receives a user name, host name, etc., it would be annoying to define them in a method for each command. If a class (or record class) has a parameterized constructor, it is treated as part of the definition of a command method. Cocona has filter mechanism like ASP.NET Core's action filter. Filters allow custom processing before or after you run a command. If a constructor has parameters, Cocona injects an instance obtained from IServiceProvider into the parameter. Cocona provides support for shell command-line completion (also known as tab completion).

Features

  • Make it easy to build console applications on .NET
  • Create a console application with Cocona in seconds
  • ASP.NET Core-like Minimal API
  • Command-line option semantics like UNIX tools standard
  • Built-in help documentation support
  • Highly modulable/customizable CLI framework

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Cocona

Cocona Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Cocona!

Additional Project Details

Operating Systems

Linux

Programming Language

C#

Related Categories

C# Build Tools, C# Frameworks

Registered

2022-06-08