No project description provided
Project description
git-scripts
This project is a collection of scripts that increase the functionality of git commands.
Installation:
To install git-scripts, in your terminal, type:
pip install git-scripts
Scripts:
rust-ver
: a script that reads a Rust project's Cargo.toml file to find its (semantic-versioned) version number, increments the number, and adds any unstaged/untracked files in the working directory and commits them all- usage:
rust_ver.py [-h] [-d DIRPATH] [-l {CRITICAL,ERROR,WARN,INFO,DEBUG,NOTSET} {major,minor,patch,subpatch,alpha,unalpha}]
- positional argument:
- indicates the portion of the version number to be incremented; the choices are:
major
minor
patch
subpatch
alpha
(alias forsubpatch
)unalpha
(doesn't increment anything but removes the the subpatch [e.g.-alpha0
] suffix)
- indicates the portion of the version number to be incremented; the choices are:
-h
(--help
): display the script's usage information-d
(--dir
): use this flag and follow it with a directory path to indicate a git repository directory that is different from the current working directory-l
(--log-level
): use this flag to set the lowest level of logs to actually log to the console; in decending order of strictness, these are the choices:critical
error
warn
info
(default)debug
notset
- Examples:
rust-ver major -l debug
- assuming the project's version was
1.2.3-alpha2
, the script would update that to2.0.0
and commit that change and anything else in the index
- assuming the project's version was
rust-ver unalpha -d ../some-project
- assuming that the project's version was
2.0.1-alpha1
and the current working directory is anything exceptsome-project
, the script would look intosome-project
, update the version to2.0.1
and commit that change and anything else in the index
- assuming that the project's version was
- usage:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
git-scripts-1.0.0.tar.gz
(8.7 kB
view hashes)
Built Distribution
Close
Hashes for git_scripts-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | baea987dff81108ccc264ac9e4bd6f5f0b66735e93ecfbde92e471a7c10bda1b |
|
MD5 | 21aed7be14f81463d5cccce5329b7093 |
|
BLAKE2b-256 | 5f9d1e02218cc545934fb44ce94d23c752d14337acaf9fae62fe06c841d06238 |