forked from Moldy-Community/moldy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
JustFile
55 lines (44 loc) · 1.08 KB
/
JustFile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
alias pypi := pypi-commit-installer
alias homebrew := homebrew-commit-installer
alias c := commit
alias r := run
alias dep := dependencies
alias i := install
alias b := branch
default:
echo "Just commands"
just --list
branch NAME:
echo "Running the git branch new"
git branch -M {{NAME}}
run COMMAND:
echo "Running moldy .."
go run main.go {{COMMAND}}
echo "Succesfully runned the command"
install:
echo "Installing moldy .."
go install
echo "Succesfully installed run: moldy -h"
dependencies:
echo "Installing the dependencies ..."
go mod tidy
echo "Succesfully installed"
pypi-commit-installer:
echo "Installing commitizen ..."
pip install commitizen
echo "Succesfully installed commitizen :D"
homebrew-commit-installer:
echo "Installing commitizen by Homebrew ..."
brew install commitizen
echo "Succesfully installed commitizen :p"
commit:
go fmt ./...
echo "Adding to staging area"
git add .
echo "Running commitizen..."
cz c
echo "Finished the commit :D"
push:
echo "Pushing to main ..."
git push -u origin main
echo "Finished the push"