Popularity
3.2
Declining
Activity
0.0
Stable
9
1
4
Programming language: Crystal
License: MIT License
Tags:
Misc
shell.cr alternatives and similar shards
Based on the "Misc" category.
Alternatively, view shell.cr alternatives based on common mentions on social networks and blogs.
-
sentry
Build/Runs your crystal application, watches files, and rebuilds/restarts app on file changes -
immutable
Thread-safe, persistent, immutable collections for the Crystal language -
crystagiri
An Html parser library for Crystal (like Nokogiri for Ruby) -
crz
Functional programming library for https://github.com/crystal-lang/crystal -
crystal-web-framework-stars
โญ๏ธ Web frameworks for Crystal, most starred on Github -
cron_scheduler
Simple job scheduler with crontab patterns for Crystal Language. -
inflector.cr
Inflector shard for Crystal. A port of ActiveSupport::Inflector -
aasm.cr
:arrows_clockwise: Easy to use finite state machine for Crystal classes -
kreal
Kreal is a model sharing & RPC library built on and works with Kemal seamlessly. -
retriable.cr
Retriable.cr is a simple DSL to retry failed code blocks -
ulid
Universally Unique Lexicographically Sortable Identifier (ULID) in Crystal -
CrSerializer
Extensible annotation based serialization/deserialization library -
circuit_breaker
Implementation of the circuit breaker pattern in crystal -
burocracia.cr
๐ Zero-dependency Crystal shard to validate, generate and format Brazilian burocracias (CPF, CNPJ, CEP) -
wikicr
Wiki in crystal, using Markdown and Git, inspired by dokuwiki. Last features to build are pretty hard, if you have some time to help... :) -
m3u8
Generate and parse m3u8 playlists for HTTP Live Streaming (HLS) in Crystal. -
message_verifier.cr
Rails compatible MessageVerifier for Crystal-lang apps -
defined
This shard provides facilities for checking whether a constant exists at compile time, and for a variety of different conditional compilation options. Code can be conditionally compiled based on the existence of a constant, version number constraints, or whether an environment variable is set truthy or not.
Learn any GitHub repo in 59 seconds
Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.
Promo
getonboard.dev
Do you think we are missing an alternative of shell.cr or a related project?
README
shell
Small simplistic helper class for executing shell commands in Crystal:
- run command,
- exit if it fails,
- return STDOUT of the command;
- optionally
- allow to ignore failure
- return STDERR of failed command.
Installation
Add this to your application's shard.yml
:
dependencies:
shell:
github: dmytro/shell.cr
Usage
require "shell"
Output of the shell command is available through #stdout
and #stderr
methods, numeric value of the exit status returned by the function #run
.
Simplest usage of the #run
method:
puts Shell.run("ls").stdout
If command fails Shell
raises exception, but this behaviour can be
overridden by fail_on_error
variable:
puts Shell.run("command_with_non_zero_status", fail_on_error: false).stderr
Contributing
- Fork it ( https://github.com/dmytro/shell/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- dmytro Dmytro Kovalov - creator, maintainer