{"id":16211595,"url":"https://github.com/laurabeatris/prepend_cli","last_synced_at":"2025-04-07T21:39:18.879Z","repository":{"id":100511787,"uuid":"286730441","full_name":"LauraBeatris/prepend_cli","owner":"LauraBeatris","description":"a simple cli tool to prepend command lines arguments from stdin and write to stdout","archived":false,"fork":false,"pushed_at":"2020-08-16T16:52:16.000Z","size":167,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T23:14:33.486Z","etag":null,"topics":["cli","elixir","elixir-lang","escript","mix"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LauraBeatris.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-11T11:48:44.000Z","updated_at":"2021-03-13T14:48:32.000Z","dependencies_parsed_at":"2023-05-15T14:00:18.841Z","dependency_job_id":null,"html_url":"https://github.com/LauraBeatris/prepend_cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LauraBeatris%2Fprepend_cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LauraBeatris%2Fprepend_cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LauraBeatris%2Fprepend_cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LauraBeatris%2Fprepend_cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LauraBeatris","download_url":"https://codeload.github.com/LauraBeatris/prepend_cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247734263,"owners_count":20987237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","elixir","elixir-lang","escript","mix"],"created_at":"2024-10-10T10:48:39.215Z","updated_at":"2025-04-07T21:39:18.853Z","avatar_url":"https://github.com/LauraBeatris.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"left\"\u003e\n   \u003cimg src=\"./.github/docs/logo.png\" width=\"150px\"/\u003e\n\u003c/p\u003e\n\n# Prepend\n\n\u003e Prepends command lines arguments from stdin and writes to stdout.\n\n[![Author](https://img.shields.io/badge/author-LauraBeatris-F5C84C?style=flat-square)](https://github.com/LauraBeatris)\n[![Languages](https://img.shields.io/github/languages/count/LauraBeatris/prepend_cli?color=%23F5C84C\u0026style=flat-square)](#)\n[![Stars](https://img.shields.io/github/stars/LauraBeatris/prepend_cli?color=F5C84C\u0026style=flat-square)](https://github.com/LauraBeatris/prepend_cli/stargazers)\n[![Forks](https://img.shields.io/github/forks/LauraBeatris/prepend_cli?color=%23F5C84C\u0026style=flat-square)](https://github.com/LauraBeatris/prepend_cli/network/members)\n[![Contributors](https://img.shields.io/github/contributors/LauraBeatris/prepend_cli?color=F5C84C\u0026style=flat-square)](https://github.com/LauraBeatris/prepend_cli/graphs/contributors)\n[![CI Status](https://img.shields.io/github/workflow/status/LauraBeatris/prepend_cli/CI?label=CI\u0026style=flat-square)](https://github.com/LauraBeatris/prepend_cli/actions)\n\n---\n\u003cp align=\"center\"\u003e\n   \u003cimg src=\"./.github/docs/cli-example.gif\" width=\"500\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n   \u003cimg src=\"./.github/docs/mix-task-example.gif\" width=\"500\"/\u003e\n\u003c/p\u003e\n\n---\n\n\n# :pushpin: Table of Contents\n\n* [Installation](#construction_worker-installation)\n* [Usage](#pushpin-usage)\n* [Development](#building_construction-development)\n* [Found a bug? Missing a specific feature?](#bug-issues)\n* [Contributing](#tada-contributing)\n* [License](#closed_book-license)\n\n\n# :construction_worker: Installation\n\nMake sure you have [Elixir](https://elixir-lang.org/) installed. If you're on a Mac, just run ``brew install elixir``\n\nRun ``mix deps.get`` and ``mix escript.build`` or combine them as ``mix do deps.get, escript.build``\n\n- ``mix deps.get``: Download the dependencies defined inside ``mix.exs``\n- ``mix escript.build``: Build the executable that can be invoked from the command line\n\n# :pushpin: Usage\n\nWith compiled binary:\n\n```\n$ echo -e \"fork\\nstar\" | ./prepend \"Give a \"\nGive a fork\nGive a star\n```\n\nOr run ``prepend`` directly via [mix task](https://github.com/LauraBeatris/prepend_cli/blob/master/lib/mix/tasks/prepend.ex)\n\n```\n$ echo -e \"fork\\nstar\" | mix prepend \"Give a \"\nGive a fork\nGive a star\n```\n\n# :building_construction:\tDevelopment\n\n- Start ``mix test.watch`` and develop TDD or run tests only once with ``mix test``\n- [Property tests](https://elixir-lang.org/blog/2017/10/31/stream-data-property-based-testing-and-data-generation-for-elixir/) can be run with ``mix test --only property``\n- To give the code a try in the REPL use ``iex -S mix`` and try the this:\n\n```\n[\"one\", \"two\"] |\u003e Prepend.stream_lines(\"$ \") |\u003e Enum.to_list\n```\n\n- Format code using ``mix format``\n- Lint code using ``mix credo`` and ``mix dialyzer``\n\n# :bug: Issues\n\nFeel free to **file a new issue** with a respective title and description on the the [Prepend CLI](https://github.com/LauraBeatris/prepend_cli/issues) 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](https://github.com/LauraBeatris/prepend_cli/blob/master/CONTRIBUTING.md) to find out about the coding standards.\n\n# :tada: Contributing\n\nCheck out the [contributing](https://github.com/LauraBeatris/prepend_cli/blob/master/CONTRIBUTING.md) page to see the best places to file issues, start discussions and begin contributing.\n\n# :closed_book: License\n\nReleased in 2020\n\nThis project is under the [MIT license](https://github.com/LauraBeatris/prepend_cli/master/LICENSE).\n\nMade with love by [Laura Beatris](https://github.com/LauraBeatris) 💜🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaurabeatris%2Fprepend_cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaurabeatris%2Fprepend_cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaurabeatris%2Fprepend_cli/lists"}