https://github.com/acrois/scripts
Automate Everything
https://github.com/acrois/scripts
scripts shell
Last synced: about 2 months ago
JSON representation
Automate Everything
- Host: GitHub
- URL: https://github.com/acrois/scripts
- Owner: acrois
- Created: 2023-05-11T00:25:06.000Z (about 3 years ago)
- Default Branch: trunk
- Last Pushed: 2024-04-24T03:14:32.000Z (about 2 years ago)
- Last Synced: 2025-10-19T14:54:29.518Z (8 months ago)
- Topics: scripts, shell
- Language: Python
- Homepage:
- Size: 55.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Scripts
[](https://github.com/acrois/scripts/actions/workflows/calver.yaml) [](https://github.com/acrois/scripts/actions/workflows/test.yaml) [](https://github.com/acrois/scripts/actions/workflows/shellcheck.yaml) [](https://github.com/acrois/scripts/actions/workflows/build.yaml)
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.
```sh
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.
```sh
git clone --recurse-submodules https://github.com/acrois/scripts ~/scripts
~/scripts/config.sh
```
[config.sh](./config.sh) adds a call to `source` to the end of your `~/.profile` that points to the [config/.profile](./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](https://github.com/acrois/calver) - Utility for automatically tagging git repositories using CalVer.
For full documentaiton, please see the [calver.sh](https://github.com/acrois/calver) readme.
### Git Branch Archival
[shell/bclean.sh](./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:
```sh
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
[//]: # (using bclean.sh)
```
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
```
[//]: # (used bclean.sh)