-
Notifications
You must be signed in to change notification settings - Fork 5
/
JustFile
72 lines (60 loc) · 1.52 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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
alias p := push
alias pb := push-branch
alias pl := pull
default:
echo "Just commands"
just --list
branch NAME:
echo "Running the git branch new"
git checkout -b '{{NAME}}'
echo "Creation and change of branch successful"
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"
push-branch NAME:
echo "Pushing to {{NAME}} ..."
git push origin {{NAME}}
echo "Finished the push"
add-stream:
echo "Adding Moldy upstream"
git remote add upstream git@github.com:Moldy-Community/moldy.git
echo "Successful addition"
pull:
echo "Pulling from Moldy main"
git pull upstream main
echo "successful update"