{"id":16306017,"url":"https://github.com/songmu/peep","last_synced_at":"2025-03-22T20:32:57.461Z","repository":{"id":57613509,"uuid":"163609731","full_name":"Songmu/peep","owner":"Songmu","description":"Watch a process and execute specified command for notification when finished","archived":false,"fork":false,"pushed_at":"2019-01-05T12:04:06.000Z","size":47,"stargazers_count":27,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-11T21:09:24.517Z","etag":null,"topics":["go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/Songmu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-30T18:45:06.000Z","updated_at":"2023-02-26T08:59:46.000Z","dependencies_parsed_at":"2022-08-30T02:02:49.928Z","dependency_job_id":null,"html_url":"https://github.com/Songmu/peep","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Songmu%2Fpeep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Songmu%2Fpeep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Songmu%2Fpeep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Songmu%2Fpeep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Songmu","download_url":"https://codeload.github.com/Songmu/peep/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221839129,"owners_count":16889590,"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":["go","golang"],"created_at":"2024-10-10T21:09:26.061Z","updated_at":"2024-10-28T14:16:40.026Z","avatar_url":"https://github.com/Songmu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"peep\n=======\n\n[![Build Status](https://travis-ci.org/Songmu/peep.png?branch=master)][travis]\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)][license]\n[![GoDoc](https://godoc.org/github.com/Songmu/peep?status.svg)][godoc]\n\n[travis]: https://travis-ci.org/Songmu/peep\n[license]: https://github.com/Songmu/peep/blob/master/LICENSE\n[godoc]: https://godoc.org/github.com/Songmu/peep\n\npeep a process\n\n## Description\n\nWatch a process using $PID and execute specified command for notification when finished.\nIt can also watch a remote command.\n\n## Installation\n\n### go get\n\n    % go get github.com/Songmu/peep/cmd/peep\n    % go get github.com/Songmu/peep/cmd/peep-notify\n\n### homebrew\n\n    % brew install Songmu/tap/peep\n\n### using [ghg](https://github.com/Songmu/ghg)\n\n    % ghg get Songmu/peep\n\nBuilt binaries are available on gihub releases.\n\u003chttps://github.com/Songmu/peep/releases\u003e\n\n## Synopsis\n\n### Easy Usage\n\n    % peep [-H user@host -p $PORT] $PID -- peep-notify slack\n\n![](https://user-images.githubusercontent.com/177122/50564546-05b53680-0d69-11e9-8d58-748c7469c325.png)\n\n### Custom Notification Script\n\n    % peep [-H user@host -p $PORT] $PID -- /path/to/your-notification-script\n\n## Commands\n\n- peep\n  - main program\n- peep-notify\n  - bundled command to notify easily which supports [slack](https://slack.com), [pushpullet](https://www.pushbullet.com/) and mac desktop notification.\n\n## Result JSON\n\nThe custom notification script accepts a result JSON via STDIN that reports command result like following.\n\n```json\n{\n  \"user\": \"Songmu\",\n  \"command\": \"perl -E say $$; sleep 10\",\n  \"startAt\": \"2018-12-31T17:29:56+09:00\",\n  \"endAt\": \"2018-12-31T17:30:07+09:00\",\n  \"host\": \"localhost\",\n  \"pid\":20028\n}\n```\n\n## See Also\n\n- [horenso](https://github.com/Songmu/horenso)\n\n## Author\n\n[Songmu](https://github.com/Songmu)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsongmu%2Fpeep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsongmu%2Fpeep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsongmu%2Fpeep/lists"}