{"id":18745785,"url":"https://github.com/moshloop/bash-plus","last_synced_at":"2025-11-23T14:30:24.027Z","repository":{"id":138334135,"uuid":"169985885","full_name":"moshloop/bash-plus","owner":"moshloop","description":null,"archived":false,"fork":false,"pushed_at":"2019-08-18T08:28:01.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-28T20:26:31.030Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/moshloop.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":"2019-02-10T14:18:39.000Z","updated_at":"2019-08-18T08:28:03.000Z","dependencies_parsed_at":"2023-04-25T08:47:25.097Z","dependency_job_id":null,"html_url":"https://github.com/moshloop/bash-plus","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fbash-plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fbash-plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fbash-plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moshloop%2Fbash-plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moshloop","download_url":"https://codeload.github.com/moshloop/bash-plus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239627234,"owners_count":19670844,"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":[],"created_at":"2024-11-07T16:19:40.204Z","updated_at":"2025-11-23T14:30:23.973Z","avatar_url":"https://github.com/moshloop.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bash-plus\n\n`bash-plus` is a preprocesser for shell scripts that provides the following:\n\n* Argument handling using [argbash.io](https://argbash.io)\n* Common utility functions.\n\nexample:\n```\nbash-plus script.sh \u003e sponge script.sh\n```\n\nBash plus will then run argbash and embed the common functions into the result.\n\nThe processing of bash-plus can be reversed using:\n```bash\nbash-plus script.sh clean \u003e sponge script.sh\n```\n\nThis is useful to run before commiting into git and only running compile step during build.\n\n\n## Common Functions\n\n| Function                     | Args  | Description                            |\n| ---------------------------- | ----- | -------------------------------------- |\n| epoch                        |       | time in milliseconds                   |\n| stopwatch                    | epoch |                                        |\n| error                        | msg   |                                        |\n| success                      | msg   |                                        |\n| info                         | msg   |                                        |\n| fatal                        | msg   | Logs an error and then exits with `1`  |\n| logv                         | msg   | Log only if `$debug == 'true'`         |\n| log                          | msg   | Log to `stderr` with a running time    |\n| delete_on_exit               | file  | Deletes the file when the script exits |\n| hr, hr1, hr2                 |       | Prints a horizontal rule               |\n| strict_mode, strict_mode_off |       | Turn strict mode on or off             |\n| is_linux, is_mac             |       |                                        |\n| is_jenkins, is_travis, is_ci |       |                                        |\n|                              |       |                                        |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoshloop%2Fbash-plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoshloop%2Fbash-plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoshloop%2Fbash-plus/lists"}