Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paulocheque/bash-toolbelt
https://github.com/paulocheque/bash-toolbelt
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/paulocheque/bash-toolbelt
- Owner: paulocheque
- License: other
- Created: 2016-01-10T04:14:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-04T20:09:42.000Z (almost 7 years ago)
- Last Synced: 2024-12-02T07:55:53.771Z (25 days ago)
- Language: Python
- Size: 21.5 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
bash-toolbelt
======================[![Build Status](https://travis-ci.org/paulocheque/bash-toolbelt.png?branch=master)](https://travis-ci.org/paulocheque/bash-toolbelt)
[![Docs Status](https://readthedocs.org/projects/bash-toolbelt/badge/?version=latest)](http://bash-toolbelt.readthedocs.org/en/latest/index.html)
[![Coverage Status](https://coveralls.io/repos/paulocheque/bash-toolbelt/badge.png?branch=master)](https://coveralls.io/r/paulocheque/bash?branch=master)
[![Code Status](https://landscape.io/github/paulocheque/bash-toolbelt/master/landscape.png)](https://landscape.io/github/paulocheque/bash-toolbelt/)
[![PyPi version](https://pypip.in/v/bash-toolbelt/badge.png)](https://crate.io/packages/bash-toolbelt/)
[![PyPi downloads](https://pypip.in/d/bash-toolbelt/badge.png)](https://crate.io/packages/bash-toolbelt/)**Latest version: 0.0.2 (2016/01)**
Utility methods to facilitate automation of devops tasks. Good to be used with Fabric or Invoke.
Documentation
-------------http://bash-toolbelt.readthedocs.org/en/latest/index.html
Git utilities:
from bash import git
next_tag = git.autoincrement_tag('1.2.3')
assert git.current_git_branch() == 'master'
git.last_git_tag() == '1.2.3'
git.create_tag('1.0.0')
git.auto_create_tag()
git.reset_tag('1.2.3')
git.reset_last_tag()OS utilities:
import bash.os
output = bash.os.run('ls')
bash.os.wait_for(10, 1, lambda x: None, arg1, arg2, arg3=None)
data = bash.os.read_config_file('filepath')
assert bash.os.str2bool('y')
assert bash.os.is_mac()
assert bash.os.is_linux()