{"id":35535705,"url":"https://github.com/filmil/fshlib","last_synced_at":"2026-01-25T02:02:49.425Z","repository":{"id":326473694,"uuid":"1105681761","full_name":"filmil/fshlib","owner":"filmil","description":"My shell library: sundry bash utilities","archived":false,"fork":false,"pushed_at":"2026-01-18T00:22:25.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-18T17:40:37.029Z","etag":null,"topics":["bash","bazel","library"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/filmil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-28T02:09:15.000Z","updated_at":"2026-01-18T00:21:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/filmil/fshlib","commit_stats":null,"previous_names":["filmil/fshlib"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/filmil/fshlib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filmil%2Ffshlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filmil%2Ffshlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filmil%2Ffshlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filmil%2Ffshlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/filmil","download_url":"https://codeload.github.com/filmil/fshlib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/filmil%2Ffshlib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28741635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T01:40:51.112Z","status":"online","status_checked_at":"2026-01-25T02:00:06.841Z","response_time":113,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bash","bazel","library"],"created_at":"2026-01-04T03:19:35.450Z","updated_at":"2026-01-25T02:02:49.408Z","avatar_url":"https://github.com/filmil.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fshlib\n\n[![Test](https://github.com/filmil/fshlib/actions/workflows/test.yml/badge.svg)](https://github.com/filmil/fshlib/actions/workflows/test.yml)\n[![Publish BCR](https://github.com/filmil/fshlib/actions/workflows/publish-bcr.yml/badge.svg)](https://github.com/filmil/fshlib/actions/workflows/publish-bcr.yml)\n[![Publish](https://github.com/filmil/fshlib/actions/workflows/publish.yml/badge.svg)](https://github.com/filmil/fshlib/actions/workflows/publish.yml)\n[![Tag and Release](https://github.com/filmil/fshlib/actions/workflows/tag-and-release.yml/badge.svg)](https://github.com/filmil/fshlib/actions/workflows/tag-and-release.yml)\n\n`fshlib` is a simple shell library for logging. It provides a set of functions to log messages with different severity levels.\n\n## Usage\n\nTo use the library, source the `log.bash` file in your script:\n\n```bash\nsource \"path/to/log.bash\"\n```\n\nThen you can use the logging functions:\n\n```bash\nlog::info \"This is an info message\"\nlog::warn \"This is a warning message\"\nlog::error \"This is an error message\"\n```\n\n## Functions\n\n- `log::info`: Logs an informational message.\n- `log::warn`: Logs a warning message.\n- `log::error`: Logs an error message.\n- `log::debug`: Logs a debug message. This message is only shown if the `DEBUG` environment variable is set to `true` or `log`.\n- `log::prefix`: Prefixes each line of the input with a given string.\n\n## Example\n\n```bash\n#!/usr/bin/env bash\n\nsource \"path/to/log.bash\"\n\nlog::info \"Starting the script\"\nlog::warn \"Something might be wrong\"\nlog::error \"Something went wrong\"\n\necho \"some output\" | log::prefix \"[my-prefix] \"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilmil%2Ffshlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffilmil%2Ffshlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffilmil%2Ffshlib/lists"}