Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 2.61 KB

README.md

File metadata and controls

65 lines (43 loc) · 2.61 KB

Scripts

CalVer Tagging Dynamic Test Execution Shellcheck Build Image

Shell scripts that power workflows used across many projects and runtime environments.

Docker Usage

Can be run from anywhere, based on the latest Alpine image.

docker run --rm ghcr.io/acrois/scripts:latest calver --help

Setup

Intended for Linux-based environments. WSL works fine. Windows will probably not work due to symlinks.

git clone --recurse-submodules https://github.com/acrois/scripts ~/scripts
~/scripts/config.sh

config.sh adds a call to source to the end of your ~/.profile that points to the config/.profile from ~/scripts/ which sets the $PATH environmental variable to include ~/scripts/shell so that you may clone and call shell scripts.

Version Control

Scripts for making managing version control systems easier (read: automatic).

Git Calendar Versioning

calver.sh - Utility for automatically tagging git repositories using CalVer.

For full documentaiton, please see the calver.sh readme.

Git Branch Archival

shell/bclean.sh - Utility for archiving (deleting) old branches while preserving history using tags.

Install

Just want to install this one? The following will probably work for you:

sudo curl -o /usr/local/bin/bclean.sh https://raw.githubusercontent.com/acrois/scripts/HEAD/shell/bclean.sh
sudo chmod +x /usr/local/bin/bclean.sh

Usage

Usage:
        bclean.sh --test --push --apply

Flags:
        --keep [branch]     - keep a branch by name
        --path [path]       - path to git repository
        --test              - creates a git repository to self-test the cleanup procedure
        --apply             - disable dry run and do it for real
        --push, -p          - push after applying
        --v                 - verbose output (`set -x`)
        --help              - prints this useful information