Homebrew tap for StructKit. This is not the product.
brew tap httpdss/structkit
brew install structkitOnce installed, you can use the structkit command:
# Check version
structkit --version
# List available structures
structkit list
# Generate a project structure
structkit generate --vars module_name=my-module terraform/modules/generic ./my-moduleFor full documentation, visit structkit.app/docs.
When a new version of StructKit is released on PyPI, update the formula:
-
Download and calculate the SHA256 hash for the new version:
VERSION=3.2.2 # Replace with the new version curl -sL "https://files.pythonhosted.org/packages/source/s/structkit/structkit-${VERSION}.tar.gz" \ --output "/tmp/structkit-${VERSION}.tar.gz" sha256sum "/tmp/structkit-${VERSION}.tar.gz"
-
Update
Formula/structkit.rb:- Update the
urlline with the new version number - Update the
sha256value with the hash from step 1 - Check if any new dependencies were added by extracting the tarball and reviewing
pyproject.toml
- Update the
-
Test the formula locally:
brew uninstall structkit # If previously installed brew install --build-from-source Formula/structkit.rb structkit --version -
Commit and push the changes:
git add Formula/structkit.rb git commit -m "Bump structkit to version ${VERSION}" git push origin main
VERSION=3.2.2 # Replace with the new version
cd /tmp
tar -xzf "structkit-${VERSION}.tar.gz"
cat "structkit-${VERSION}/pyproject.toml" | grep -A 20 "dependencies ="If new dependencies are added, you'll need to:
- Download each dependency from PyPI
- Calculate its SHA256 hash
- Add a new
resourceblock inFormula/structkit.rb
Example resource block:
resource "package-name" do
url "https://files.pythonhosted.org/packages/.../package-name-X.Y.Z.tar.gz"
sha256 "abcdef123456..."
endThis tap is maintained following Homebrew conventions. StructKit itself is licensed under Apache-2.0.