Hugo Wrapper screenshot

Hugo Wrapper

Author Avatar Theme by Khos2ow
Updated: 27 Jul 2021
31 Stars

The universal way to include Hugo binary to your project.

Overview

Hugo Wrapper is a versatile shell script designed to simplify the process of downloading and executing the Hugo binary across various platforms. By acting as a bridge between users and the platform-dependent Hugo executable, it enables smooth usage regardless of your operating system or command shell. Whether you are a seasoned developer or a newcomer to static site generation, this tool provides a seamless experience.

With minimal dependencies and straightforward usage, Hugo Wrapper streamlines your workflow by caching the downloaded binaries for easy access. This means no more manual downloads or version tracking; Hugo Wrapper takes care of it all, making it a must-have for anyone looking to enhance their Hugo experience.

Features

  • Cross-Platform Compatibility: Works across various operating systems including FreeBSD, DragonFlyBSD, and different shell environments like bash, zsh, and PowerShell.

  • Minimal Dependencies: Requires only basic tools such as wget or curl, and simple checksum utilities, ensuring easy installation and upon-use.

  • Automatic Hugo Binary Management: Downloads the latest Hugo binary and caches it locally the first time you run it, speeding up future executions.

  • Easy Upgrades: Simply use the –upgrade flag to download the latest version of Hugo Wrapper from GitHub, keeping your tools up-to-date effortlessly.

  • Customizable Version Control: Maintain specific Hugo versions easily by including the version in your project’s repository, facilitating consistency across development environments.

  • CI/CD Friendly: Designed to work seamlessly with Continuous Integration and Continuous Deployment platforms, providing silent builds that yield valid exit codes.

  • Direct Flag Support: Pass through any additional flags directly to the Hugo binary, allowing for flexible command usage tailored to your needs.