Skip to content

feat: add casey/just #1161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

feat: add casey/just #1161

wants to merge 1 commit into from

Conversation

rgee0
Copy link
Contributor

@rgee0 rgee0 commented Apr 8, 2025

Description

Started adding casey/just to find it was already there.

Kept the most recent implementation and removed the previous owing to the great simplicity achieved.

Added some quotes to test_tool.sh for safety

Motivation and Context

  • [ x] I have raised an issue to propose this change, which has been given a label of design/approved by a maintainer (required)
    Chat on Discord

How Has This Been Tested?

Functional

➜  arkade git:(addJust) ✗ make build                                
go build
➜  arkade git:(addJust) ✗ ./arkade get just                         
Downloading: just
2025/04/08 21:21:55 Looking up version for: just
2025/04/08 21:21:55 Found: 1.40.0
Downloading: https://github.com/casey/just/releases/download/1.40.0/just-1.40.0-aarch64-apple-darwin.tar.gz
1.58 MiB / 1.58 MiB [--------------------------------------------------------------] 100.00%
/var/folders/22/3b_f27kj3s37lbfqz_fq44jw0000gp/T/arkade-358787152/just-1.40.0-aarch64-apple-darwin.tar.gz written.
2025/04/08 21:21:56 Extracted: /var/folders/22/3b_f27kj3s37lbfqz_fq44jw0000gp/T/arkade-358787152/just
2025/04/08 21:21:56 Copying /var/folders/22/3b_f27kj3s37lbfqz_fq44jw0000gp/T/arkade-358787152/just to /Users/rgee0/.arkade/bin/just

Wrote: /Users/rgee0/.arkade/bin/just (3.773MB)

# Add arkade binary directory to your PATH variable
export PATH=$PATH:$HOME/.arkade/bin/

# Test the binary:
/Users/rgee0/.arkade/bin/just

# Or install with:
sudo mv /Users/rgee0/.arkade/bin/just /usr/local/bin/

👏 Say thanks for arkade and sponsor Alex via GitHub: https://github.com/sponsors/alexellis

make e2e

➜  arkade git:(addJust) ✗ make e2e
CGO_ENABLED=0 go test github.com/alexellis/arkade/pkg/get -cover --tags e2e -v
...
PASS
coverage: 62.2% of statements
ok  	github.com/alexellis/arkade/pkg/get	11.308s	coverage: 62.2% of statements

test_tool

➜  arkade git:(addJust) ✗ ./hack/test-tool.sh just                  
+ ./arkade get just --arch arm64 --os darwin --quiet
+ file /Users/rgee0/.arkade/bin/just
/Users/rgee0/.arkade/bin/just: Mach-O 64-bit executable arm64
+ rm /Users/rgee0/.arkade/bin/just
+ echo

+ ./arkade get just --arch x86_64 --os darwin --quiet
+ file /Users/rgee0/.arkade/bin/just
/Users/rgee0/.arkade/bin/just: Mach-O 64-bit executable x86_64
+ rm /Users/rgee0/.arkade/bin/just
+ echo

+ ./arkade get just --arch x86_64 --os linux --quiet
+ file /Users/rgee0/.arkade/bin/just
/Users/rgee0/.arkade/bin/just: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), static-pie linked, BuildID[sha1]=b0975aaadb19ad43a2ae1b8fe9d0137fb27b66ca, not stripped
+ rm /Users/rgee0/.arkade/bin/just
+ echo

+ ./arkade get just --arch aarch64 --os linux --quiet
+ file /Users/rgee0/.arkade/bin/just
/Users/rgee0/.arkade/bin/just: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, BuildID[sha1]=010289e5725b795c59fb8df6fdb3a882c7e17fc9, not stripped
+ rm /Users/rgee0/.arkade/bin/just
+ echo

+ ./arkade get just --arch x86_64 --os mingw --quiet
+ file /Users/rgee0/.arkade/bin/just.exe
/Users/rgee0/.arkade/bin/just.exe: PE32+ executable (console) x86-64, for MS Windows
+ rm /Users/rgee0/.arkade/bin/just.exe
+ echo

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Documentation

  • I have updated the list of tools in README.md if (required) with ./arkade get --format markdown
  • I have updated the list of apps in README.md if (required) with ./arkade install --help

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I've read the CONTRIBUTION guide
  • I have signed-off my commits with git commit -s
  • I have tested this on arm, or have added code to prevent deployment

Signed-off-by: Richard Gee <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant