You aware you could have done this in bash?
Simple tool to simplify repo downloads when packaging
Jacalz
Nice one in case if you want to use any directory just add this bit of code in .bashrc and
call solfetch <packageName>
dPMethod(){
packagename=$1
if [[ $# -lt 1 ]] ; then
echo "==================================================="
echo "please provide the packagename"
echo "example: solfetch packagename"
echo "==================================================="
else
git clone https://dev.getsol.us/source/${packagename}.git
fi
}
alias solfetch=dPMethod $1
- Edited
Girtablulu Yes I am well aware of that but I donβt like the if else syntax in bash and it was a good thing to try to do in the way to learning Go. Still gets the job done and I like it
Jacalz if you wanna have something helpfully I recommend on something which clones and updates the package in the same time is my most used bash script
Girtablulu Sounds like a great idea! I really should get better at bash scripts since it is a bit like using a sledgehammer when you only need a hammer if you use Go for stuff like this...
Jacalz yea was my initial thought, a slide overkill for something "simple" but still good practice
I used Github desktop in windows and its available in linux too
https://github.com/shiftkey/desktop
https://ftp.gnome.org/pub/GNOME/sources/gitg/3.32/
http://git-cola.github.io/
https://alternativeto.net/software/giggle/
$$$$
https://www.sublimemerge.com/download
https://www.gitkraken.com/pricing
- Edited
Jacalz go ahead and expand it. It will be a good experience too there are Go pros here they may help you.
here is the one i know in other threads buddyspencer he developed uas
I also do this in bash, simple & no dependency.
Personally I check if the directory already exists; if it doesn't, I clone the repo, if it does, I jump in it and do a make pull
to make sure it's up-to-date.
function gc {
git clone https://dev.getsol.us/source/${1}.git
cd ${1}
ls -hl --group-directories-first
}
Did this a while back.