Comments (2)
Hi @aMOPel
The --gh-release=xxxx
is used when you want to disambiguate release asset name. For example, if the release contain two asset named as ABC and DEF, you can do
shsh install --gh-release=DEF my/repo
to pick the latter.
For your usecase, you can use
shsh install --gh-release junegunn/[email protected]
to pin the version (it can either be any ref, like a release tag or commit id).
You might need to first upgrade to the latest version, with
shsh self-upgrade
because the previous version was not respecting the ref tag.
I've updated usage on readme to explain this usage.
from shsh.
Thank you! I eventually figured it out after reading the code a little and forgot to close this. Sorry.
I ended up forking your repo and adding a few features I was missing. I didn't make a pr since my code is rather ad hoc, but feel free to take inspiration.
https://github.com/aMOPel/shsh
[parse repository and reference when using --plain]
without this, shsh install --gh-release junegunn/[email protected]
would not work correctly. I think it would always pull the latest version or fail all together.
[added automatic searching for bash completion files when linking completion]
[added support for relative paths, when passing -v MANS=<path>]
some issues I encountered with linking
[if after extracting assets, all files are in 1 sub directory, move them 1 up]
this was necessary, since linking would fail if the archive would extract into a subdirectory. Alternatively you could adapt your linking paths.
[made asset filter for "linux" case insesitive]
so it could actually find assets with names containing Linux
etc
from shsh.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shsh.