{"id":13678137,"url":"https://github.com/devinus/sh","last_synced_at":"2025-04-05T19:12:27.992Z","repository":{"id":14384236,"uuid":"17094504","full_name":"devinus/sh","owner":"devinus","description":"Run programs as functions in Elixir","archived":false,"fork":false,"pushed_at":"2024-06-27T13:13:01.000Z","size":21,"stargazers_count":147,"open_issues_count":2,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-04T20:45:47.949Z","etag":null,"topics":["elixir","shell"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devinus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2014-02-22T20:56:13.000Z","updated_at":"2025-04-01T09:20:07.000Z","dependencies_parsed_at":"2025-01-24T07:05:39.909Z","dependency_job_id":"509b1c0e-6f11-4028-8026-8e3dcca8ab48","html_url":"https://github.com/devinus/sh","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devinus%2Fsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devinus%2Fsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devinus%2Fsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devinus%2Fsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devinus","download_url":"https://codeload.github.com/devinus/sh/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249617,"owners_count":20908211,"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":["elixir","shell"],"created_at":"2024-08-02T13:00:50.500Z","updated_at":"2025-04-05T19:12:27.969Z","avatar_url":"https://github.com/devinus.png","language":"Elixir","funding_links":[],"categories":["Elixir"],"sub_categories":[],"readme":"# Sh\n\n[![Build Status](https://api.travis-ci.org/devinus/sh.svg?branch=master)](https://travis-ci.org/devinus/sh)\n\n[![Support via Gratipay](https://cdn.rawgit.com/gratipay/gratipay-badge/2.3.0/dist/gratipay.png)](https://gratipay.com/devinus/)\n\nAn Elixir module inspired by Python's [sh](http://amoffat.github.io/sh/)\npackage. `Sh` allows you to call any program as if it were a function.\n\n## Adding Sh to Your Project\nTo use Sh with your projects, simply edit your mix.exs file and add it as a dependency:\n\n```elixir\n  defp deps do\n    [{:sh, \"~\u003e 1.1.2\"}]\n  end\n```\n\n## Example\n\n```iex\niex\u003e Sh.echo \"Hello World!\"\n\"Hello World!\\n\"\n```\n\n## Options\n\n`Sh` commands accept as the last argument a list of options.\n\n```elixir\nSh.curl \"http://example.com/\", o: \"page.html\", silent: true\n\"\"\n```\n\nThe equivalent call without using this feature would be:\n\n```elixir\nSh.curl \"-o\", \"page.html\", \"--silent\", \"http://example.com/\"\n```\n\n## Underscores\n\nUnderscores in a program name or keyword options are converted to dashes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevinus%2Fsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevinus%2Fsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevinus%2Fsh/lists"}