Pomme::TAB
  • Mastodon
  • Permaculture Blog
  • Code
  • LinkedIn
Subscribe
Tagged

bash

A collection of 2 posts

api

Migrating from Gitter API to Matrix

We have a script that post to a Gitter channel using their API. But Gitter is migrating to Matrix soon, and they will shut down their API. Here is the code for our Gitter API client: #!/usr/bin/env bash source .env curl -X POST -i -H "Content-Type: application/json"

  • Rija Ménagé
Rija Ménagé Feb 5, 2023 • 1 min read
bash

Testing bash scripts

A few years ago, I was looking into the idea of writing unit testing for bash scripts, and that's when I stumbled across a project called bats. Coming from a Perl background, It caught my attention due to its use of the TAP protocol (Test Anything Protocol). However the opensource

  • Rija Ménagé
Rija Ménagé Feb 1, 2023 • 3 min read
Pomme::TAB © 2023
Powered by Ghost