GoToolSharing / htb-cli

Interact with Hackthebox using your terminal - Be faster and more competitive !
https://github.com/GoToolSharing/htb-cli
GNU General Public License v3.0
87 stars 6 forks source link

Add global version #70

Closed QU35T-code closed 11 months ago

QU35T-code commented 1 year ago

const Version = "1.0.0"

DisplayGFX commented 1 year ago

It might be a good idea to also set the dev version to be the commit hash.

QU35T-code commented 11 months ago

Hey @DisplayGFX,

Dev branch has now a version (commit hash)

> go run . update
A new update is now available (dev) ! (fd2651baa419e8d022c3d8968a781552d87a923a)
Update with : git pull
> git pull
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Total 4 (delta 2), reused 4 (delta 2), pack-reused 0
Unpacking objects: 100% (4/4), 373 bytes | 373.00 KiB/s, done.
From github.com:GoToolSharing/htb-cli
   fd2651b..f9f4619  dev        -> origin/dev
Updating fd2651b..f9f4619
Fast-forward
 config/config.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
> go run . update
You're up to date (dev) ! (fd2651baa419e8d022c3d8968a781552d87a923a)