Git Product home page Git Product logo

rs.carli's Introduction

CarLI

A library for rapid command line tool development.

CarLI is a framework for creating single-command and multi-command CLI applications in Rust. The framework provides error and IO types better suited for the command line environment, especially in cases where unit testing is needed. Opinionated traits are also provided to enforce a consistent way of structuring the application and its subcommands.

See command::Main for a complete example.

Requirements

  • Rust 1.57+

Examples

Documentation

Please see docs.rs.

rs.carli's People

Contributors

kherge avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

kherrera-ebsco

rs.carli's Issues

Support try from `anyhow::Error` to `carli::error::Error`.

The following checks have been done.

  • I could not find another enhancement request that covers what I need.
  • This request does not cover existing functionality.

What existing feature needs to be enhanced?

The ability to convert into carli::error::Error.

What problem is being solved?

Supporting ? operator conversions from anyhow::Error to carli::error::Error.

How would you like to see this problem solved?

Implement From<anyhow::Error> for Error.

Some additional context.

Implement `From<T> for Error` for all `std::error::Error` implementations.

The following checks have been done.

  • I could not find another enhancement request that covers what I need.
  • This request does not cover existing functionality.

What existing feature needs to be enhanced?

The ability to convert errors to carli::error::Error.

What problem is being solved?

The lack of support for all std::error::Error implementations.

How would you like to see this problem solved?

Replacing existing From<T> implementations with From<T: std::error::Error> for Error.

Some additional context.

  • Should try to perform OS errors codes from errors such as std::io::Error.

Create tests for the multiple subcommands example.

The following checks have been done.

  • I could not find another enhancement request that covers what I need.
  • This request does not cover existing functionality.

What existing feature needs to be enhanced?

The example multiple application.

What problem is being solved?

There are no tests written for the example.

How would you like to see this problem solved?

Examples on how to test the various modules in the application.

Some additional context.

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.