{"id":21388398,"url":"https://github.com/robinvandernoord/ntfy-log","last_synced_at":"2025-03-16T12:41:15.917Z","repository":{"id":230975001,"uuid":"780619924","full_name":"robinvandernoord/ntfy-log","owner":"robinvandernoord","description":"Very simple CLI tool to log the result of a shell command to ntfy.sh","archived":false,"fork":false,"pushed_at":"2024-05-28T15:57:51.000Z","size":126,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T00:26:29.621Z","etag":null,"topics":["logging","ntfy","rust"],"latest_commit_sha":null,"homepage":"https://ntfy-log.s3.su6.nl/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robinvandernoord.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":"2024-04-01T21:05:51.000Z","updated_at":"2024-05-28T15:57:55.000Z","dependencies_parsed_at":"2024-04-24T22:26:58.690Z","dependency_job_id":"919c0fcb-85e1-443e-b716-928bd47f5233","html_url":"https://github.com/robinvandernoord/ntfy-log","commit_stats":null,"previous_names":["robinvandernoord/ntfy-log"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinvandernoord%2Fntfy-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinvandernoord%2Fntfy-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinvandernoord%2Fntfy-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robinvandernoord%2Fntfy-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robinvandernoord","download_url":"https://codeload.github.com/robinvandernoord/ntfy-log/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243871524,"owners_count":20361375,"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":["logging","ntfy","rust"],"created_at":"2024-11-22T12:17:02.632Z","updated_at":"2025-03-16T12:41:15.898Z","avatar_url":"https://github.com/robinvandernoord.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ntfy-log\n\nVery simple CLI tool to log the result of a shell command to ntfy.sh\n\n## Installation\n\n### Prebuilt binaries\n\n[Intel/AMD 64 bit (x64_64)](https://download.s3.su6.nl/x86_64/ntfy-log)  \n[ARM (aarch64)](https://download.s3.su6.nl/aarch64/ntfy-log)\n\n### Build from source\n\n```bash\ngit clone https://github.com/robinvandernoord/ntfy-log.git\ncd ntfy-log\ncargo build --release\n```\n\n## Usage\n\n```bash\n# signature\nntfy-log \u003ctopic\u003e [--endpoint \u003cendpoint\u003e] [--title \u003ctitle\u003e] \u003csubcommand\u003e...\n\n# example 1 - simple\nntfy-log some-channel ls\n\n# example 2 - advanced\nntfy-log --endpoint ntfy.s3.su6.nl --title \"Custom Title\" secret-channel ls -alh\n```\n\n`--endpoint`: by default this will point to `ntfy.sh`\n`--title`: by dfeault this will simply be the command (e.g. `ls` in example 1)\n\nAfter executing `subcommand`, a JSON result will be sent to the provided topic, with the `command,` `stdout`, `stderr`, and `exit_code`.  \nIf the exit code is non-zero (indicating an error), the priority will be `High`.\nIn addition, a second message containing simply the `title` is posted to `$topic--success` or `$topic--failure`.\n\n`subcommand` can also be a complex statement (e.g. with pipes (`|`) and logical operators (`\u0026\u0026`, `||`)). Only the final stdout, stderr and exit code are captured (just like you would only see those when running the command normally).\n\nThe original stdout and stderr are still printed (unless you pass `--quiet/-q`) and the exit code is forwarded. You can control the output level of `ntfy-log` logs by setting the verbosity level (default: errors only; `-v`: warnings too; `-vv`: informative messages too; `-vvv`: debug messages too; `-vvvv`: stack-trace level logging).\n\n### self-update\nYou can use the `ntfy-log --self-update` subcommand to download the latest binary (if a newer version is available). This binary will be downloaded from [https://download.s3.su6.nl/].\nOne can see the currently installed version with `ntfy-log --version`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinvandernoord%2Fntfy-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobinvandernoord%2Fntfy-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobinvandernoord%2Fntfy-log/lists"}