{"id":15470461,"url":"https://github.com/army-cat/trooper","last_synced_at":"2025-04-22T12:09:01.184Z","repository":{"id":62430546,"uuid":"53348002","full_name":"army-cat/trooper","owner":"army-cat","description":"Trooper is easy library for send remote commands","archived":false,"fork":false,"pushed_at":"2025-04-11T22:09:13.000Z","size":3533,"stargazers_count":9,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T12:08:30.240Z","etag":null,"topics":["army","automation","elixir","erlang","ssh-client"],"latest_commit_sha":null,"homepage":"","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/army-cat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["manuel-rubio"],"patreon":"altenwald","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2016-03-07T18:20:11.000Z","updated_at":"2025-04-11T22:05:21.000Z","dependencies_parsed_at":"2022-11-01T20:19:46.557Z","dependency_job_id":null,"html_url":"https://github.com/army-cat/trooper","commit_stats":null,"previous_names":["altenwald/trooper"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/army-cat%2Ftrooper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/army-cat%2Ftrooper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/army-cat%2Ftrooper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/army-cat%2Ftrooper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/army-cat","download_url":"https://codeload.github.com/army-cat/trooper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250237831,"owners_count":21397401,"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":["army","automation","elixir","erlang","ssh-client"],"created_at":"2024-10-02T02:04:48.377Z","updated_at":"2025-04-22T12:09:01.176Z","avatar_url":"https://github.com/army-cat.png","language":"Erlang","funding_links":["https://github.com/sponsors/manuel-rubio","https://patreon.com/altenwald"],"categories":[],"sub_categories":[],"readme":"# Trooper #\n\nCopyright (c) 2016-2025 Altenwald\n\n__Authors:__ \"Manuel Rubio ([`manuel@altenwald.com`](mailto:manuel@altenwald.com)).\n\n[![codecov](https://codecov.io/gh/army-cat/trooper/graph/badge.svg?token=Oa7Ak456tN)](https://codecov.io/gh/army-cat/trooper)\n[![Hex](https://img.shields.io/hexpm/v/trooper.svg)](https://hex.pm/packages/trooper)\n\nTrooper is a soldier in charge to go to other machines (via SSH) and follow your commands.\n\n### Requirements\n\nTrooper requires to be run over an Erlang/OTP 24+.\n\n### Example\n\n```erlang\n1\u003e {ok, File} = file:read_file(\"/home/trooper/.ssh/id_rsa\").\n{ok,\u003c\u003c\"-----BEGIN RSA PRIVATE KEY-----\\nMIIE\"...\u003e\u003e}\n2\u003e {ok,Trooper} = trooper_ssh:start([{host, \"trooper.com\"},\n                                     {user, \"trooper\"},\n                                     {id_rsa, File}]), ok.\nok\n3\u003e trooper_ssh:exec(Trooper, \"ls -lha\").\n{ok,0,\n    \u003c\u003c\"total 128K\\ndrwxr-xr-x 10 trooper trooper 4.0K Mar  8 16:54\"...\u003e\u003e}\n4\u003e trooper_ssh:exec(Trooper, \"ls not_found\").\n{ok,2,\n    \u003c\u003c\"ls: cannot access not_found: No such file or directory\\n\"\u003e\u003e}\n5\u003e trooper_ssh:stop(Trooper).\nok\n```\n\nYou can use for the options whatever from [ssh:connect/3](http://erlang.org/doc/man/ssh.md#connect-3) options.\n\nEnjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmy-cat%2Ftrooper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farmy-cat%2Ftrooper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farmy-cat%2Ftrooper/lists"}