Installation

# Add this to your shard.yml
dependencies:
  exec_from:
    github: place-labs/exec_from
    version: ~> 2.0.0

Then run:

shards install

shard.yml

Crystal
>= 0.35
License
MIT
Authors
Stephen von Takach, Caspian Baska
Target
  • exec_from from src/app.cr
Executable
  • exec_from

Dependencies

This version declares no dependencies.

README

Execute From

Executes an application after changing directory. All IO is piped to the caller.

Installation

shards install

Usage

./bin/exec_from ../other_directory git ls-files

Client

require "exec-from"

result = ExecFrom.exec_from(".", "echo", ["hello"])

puts result[:output].to_s # => "hello"
puts result[:exit_code] # => 0