Skip to content

Commit 1298c88

Browse files
authored
merge(#25): new installation script
Adds a new installation script
2 parents 3134567 + 05c0c2b commit 1298c88

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ Sometimes we, the developers, go _full-loco_ while programming and make mistakes
1616
Just follow the commands below:
1717

1818
```bash
19+
$ chmod +x $HOME/.commit-helper/install.sh
20+
21+
$ ./$HOME/.commit-helper/install.sh
22+
23+
# or you could type the commands below
24+
1925
# make sure you have the dependencies installed in your machine and
2026
# have git ready to use
2127
$ sudo apt install python3-pip git

install.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#! /bin/bash
2+
3+
if [command -v git]; then
4+
sudo apt-get update -qq;
5+
sudo apt install git;
6+
fi
7+
8+
if [command -v python3]; then
9+
sudo apt install python3;
10+
fi
11+
12+
if [command -v pip3]; then
13+
sudo apt install python3-pip;
14+
fi
15+
16+
git clone https://github.com/andre-filho/commit-helper.git ~/.commit-helper;
17+
18+
pip3 install --user ~/.commit-helper/requirements.txt;
19+
20+
chmod +x $HOME/.commit-helper/generator.py;
21+
22+
echo "alias commit='./$HOME/.commit-helper/generator.py' >> $HOME/.bashrc;

test/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import utils
2-
import yaml
2+
# import yaml
33

44

55
def test_get_text_no_context():

0 commit comments

Comments
 (0)