{"id":20543418,"url":"https://github.com/morgankryze/bash-toolbox","last_synced_at":"2026-05-04T20:33:16.333Z","repository":{"id":260460882,"uuid":"863209028","full_name":"MorganKryze/bash-toolbox","owner":"MorganKryze","description":"UI tools for processes / functions feedbacks","archived":false,"fork":false,"pushed_at":"2025-06-07T10:41:38.000Z","size":181,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-07T11:28:41.079Z","etag":null,"topics":["bash","logging","toolbox","zsh"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/MorganKryze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":".github/SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-09-25T22:53:52.000Z","updated_at":"2025-06-07T10:41:41.000Z","dependencies_parsed_at":"2024-10-31T13:29:34.361Z","dependency_job_id":"2a5455ed-2109-4763-af8f-c1d9533d8ece","html_url":"https://github.com/MorganKryze/bash-toolbox","commit_stats":null,"previous_names":["morgankryze/bash-toolbox"],"tags_count":0,"template":false,"template_full_name":"MorganKryze/Repository-Template","purl":"pkg:github/MorganKryze/bash-toolbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorganKryze%2Fbash-toolbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorganKryze%2Fbash-toolbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorganKryze%2Fbash-toolbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorganKryze%2Fbash-toolbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MorganKryze","download_url":"https://codeload.github.com/MorganKryze/bash-toolbox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MorganKryze%2Fbash-toolbox/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266655348,"owners_count":23963553,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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","logging","toolbox","zsh"],"created_at":"2024-11-16T01:37:47.516Z","updated_at":"2026-05-04T20:33:16.328Z","avatar_url":"https://github.com/MorganKryze.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Demo](./docs/assets/img/presentation.png)\n\n# Bash Toolbox\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Version](https://img.shields.io/badge/version-2.0.0-blue.svg)](./docs/CHANGELOG.md)\n\nA lightweight bash library for colored logging, progress indicators, and interactive prompts.\n\n## Features\n\n- **Colored Logging** - Multiple log levels with timestamps and colors\n- **Progress Indicators** - Spinner and progress bar\n- **Interactive Prompts** - User input and confirmations\n- **Configurable** - Environment variables for timestamps, colors, and log levels\n- **Pure Bash** - No external dependencies\n\n## Quick Start\n\nNo installation needed! Source directly from GitHub:\n\n```bash\nsource \u003c(curl -s https://raw.githubusercontent.com/MorganKryze/bash-toolbox/main/src/prefix.sh)\n\n# Start using immediately\ninfo \"Starting application...\"\nsuccess \"Done!\"\n\n# Interactive prompt\nname=$(input \"Your name?\" \"User\")\nif prompt \"Continue?\" \"y\"; then\n  success \"Hello, $name!\"\nfi\n```\n\n## Installation\n\n### Direct Usage (Recommended)\n\nSource directly in your scripts:\n\n```bash\n#!/usr/bin/env bash\nsource \u003c(curl -s https://raw.githubusercontent.com/MorganKryze/bash-toolbox/main/src/prefix.sh)\n\ninfo \"No installation required!\"\n```\n\n### Local Installation\n\nFor offline use or development:\n\n```bash\ngit clone https://github.com/MorganKryze/bash-toolbox.git\ncd bash-toolbox\n./demo.sh  # Try it out\n\n# Source locally\nsource ./src/prefix.sh\n```\n\n### Try Examples Instantly\n\nAll demo and example scripts work anywhere, even without cloning:\n\n```bash\n# Run the full demo\nbash -c \"$(curl -s https://raw.githubusercontent.com/MorganKryze/bash-toolbox/main/demo.sh)\"\n\n# Run any example\nbash -c \"$(curl -s https://raw.githubusercontent.com/MorganKryze/bash-toolbox/main/examples/simple.sh)\"\nbash -c \"$(curl -s https://raw.githubusercontent.com/MorganKryze/bash-toolbox/main/examples/backup.sh)\"\nbash -c \"$(curl -s https://raw.githubusercontent.com/MorganKryze/bash-toolbox/main/examples/installer.sh)\"\n```\n\nThe scripts automatically load the library from GitHub if not found locally.\n\n## Usage\n\n### Logging\n\n```bash\ndebug \"Debug info\"           # Gray, level 0\ninfo \"Information\"           # Blue, level 1\nwarning \"Warning message\"    # Orange, level 2\nerror \"Error occurred\"       # Red, level 3\nfatal \"Fatal error\" 1        # Red, exits with code\n```\n\n### Progress\n\n```bash\n# Spinner\nspinner \"sleep 3\" \"Processing...\"\n\n# Progress bar\nfor i in {1..100}; do\n  progress_bar $i 100\n  sleep 0.05\ndone\n```\n\n### Prompts\n\n```bash\n# Yes/no confirmation\nif prompt \"Delete files?\" \"n\"; then\n  action \"Deleting...\"\nfi\n\n# Text input\nname=$(input \"Enter name\" \"default\")\n\n# Wait for key\nacknowledge \"Press any key to continue\"\n```\n\n### Utilities\n\n```bash\nseparator           # Full-width line\nheader \"SECTION\"    # Centered header\nblue \"Colored text\" # Direct color output\n```\n\n## Configuration\n\nSet environment variables before sourcing:\n\n```bash\nENABLE_TIMESTAMPS=false  # Disable timestamps\nENABLE_COLORS=false      # Disable colors\nLOG_LEVEL=2              # Only warnings and above (0-4)\nLOG_FILE=\"/tmp/app.log\"  # Enable file logging\n\nsource ./src/prefix.sh\n```\n\n## Documentation\n\nSee [QUICKREF.md](./docs/QUICKREF.md) for complete function reference and [examples/](examples/) for more usage patterns.\n\n## Requirements\n\n- Bash 4.0+ or zsh 5.0+\n- Terminal with color support (optional)\n\n## License\n\nMIT License - see [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorgankryze%2Fbash-toolbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorgankryze%2Fbash-toolbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorgankryze%2Fbash-toolbox/lists"}