reply

Crates.io version GitHub license Build CI Changelog CI Libraries.io <code>SourceRank</code>

reply📩 makes any command-line application a (stateless) REPL.

```console $ reply 'python | cowsay -f tux -n'

print("Hello reply📩!")


< Hello reply📩! >


\ \ .--. |oo | |:/ | // \ \ (| | ) /'_ /`\ _)=(/

> ```

Read the installation and usage instructions below.

Installation

From source (recommended)

Either clone the repository to your machine and install from it, or install directly from GitHub. Both options require Rust and Cargo to be installed.

```console

Option 1: cloning and installing from the repository

$ git clone https://github.com/schneiderfelipe/getanswe.rs.git $ cd getanswe.rs && cargo install reply --path=reply/

Option 2: installing directly from GitHub

$ cargo install reply --git=https://github.com/schneiderfelipe/getanswe.rs ```

If you're looking to contribute to the project's development, the first option is the way to go (and thank you for your interest!). However, if you simply want to install the development version, the second option is likely the better choice.

Usage

Using this tool is simple:

console $ reply 'python' >

Whatever you type in the prompt will be fed to the backend command (python in the example). The output of the command will be displayed in the terminal. For example:

```console $ reply 'python'

print("Hello " + "python") Hello python

```

However, there are a few things to keep in mind:

Here's an example:

```console $ reply 'python'

a = 2 # no output print(f"a = {a}") # no memory Traceback (most recent call last): File "", line 1, in NameError: name 'a' is not defined ```

Therefore, it's the responsibility of the backend application to

Unsafe code usage

This project forbids unsafe code usage.

License: MIT