Coder Social home page Coder Social logo

prepend_cli's Introduction

Prepend

Prepends command lines arguments from stdin and writes to stdout.

Author Languages Stars Forks Contributors CI Status



๐Ÿ“Œ Table of Contents

๐Ÿ‘ท Installation

Make sure you have Elixir installed. If you're on a Mac, just run brew install elixir

Run mix deps.get and mix escript.build or combine them as mix do deps.get, escript.build

  • mix deps.get: Download the dependencies defined inside mix.exs
  • mix escript.build: Build the executable that can be invoked from the command line

๐Ÿ“Œ Usage

With compiled binary:

$ echo -e "fork\nstar" | ./prepend "Give a "
Give a fork
Give a star

Or run prepend directly via mix task

$ echo -e "fork\nstar" | mix prepend "Give a "
Give a fork
Give a star

๐Ÿ—๏ธ Development

  • Start mix test.watch and develop TDD or run tests only once with mix test
  • Property tests can be run with mix test --only property
  • To give the code a try in the REPL use iex -S mix and try the this:
["one", "two"] |> Prepend.stream_lines("$ ") |> Enum.to_list
  • Format code using mix format
  • Lint code using mix credo and mix dialyzer

๐Ÿ› Issues

Feel free to file a new issue with a respective title and description on the the Prepend CLI repository. If you already found a solution to your problem, I would love to review your pull request! Have a look at our contribution guidelines to find out about the coding standards.

๐ŸŽ‰ Contributing

Check out the contributing page to see the best places to file issues, start discussions and begin contributing.

๐Ÿ“• License

Released in 2020

This project is under the MIT license.

Made with love by Laura Beatris ๐Ÿ’œ๐Ÿš€

prepend_cli's People

Contributors

laurabeatris avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.