Skip to content
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

feat: add crossplane CLI (crank) to tools #1126

Merged
merged 1 commit into from
Oct 26, 2024
Merged

Conversation

rgee0
Copy link
Contributor

@rgee0 rgee0 commented Oct 26, 2024

Description

Adds the crossplane CLI (crank) to tools to complement the app within arkade.

Motivation and Context

How Has This Been Tested?

Functional

➜  arkade git:(crank) ✗ ./arkade get crossplane
Downloading: crossplane
2024/10/26 08:38:01 Looking up version for crossplane
2024/10/26 08:38:02 Found: v1.17.2
Downloading: https://releases.crossplane.io/stable/v1.17.2/bin/darwin_arm64/crank
78.86 MiB / 78.86 MiB [-----------------------------------------------------------------------------------] 100.00%
/var/folders/22/3b_f27kj3s37lbfqz_fq44jw0000gp/T/arkade-1000329723/crank written.
2024/10/26 08:38:06 Copying /var/folders/22/3b_f27kj3s37lbfqz_fq44jw0000gp/T/arkade-1000329723/crank to /Users/rgee0/.arkade/bin/crossplane

Wrote: /Users/rgee0/.arkade/bin/crossplane (82.69MB)

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

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

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

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

make e2e

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

test_tool

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

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

+ ./arkade get crossplane --arch x86_64 --os linux --quiet
+ file /Users/rgee0/.arkade/bin/crossplane
/Users/rgee0/.arkade/bin/crossplane: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, Go BuildID=4Ukn9UJZmC6l2i4E7N4d/5y2yD4As7QG187EJcpB3/vzFdfpM9cnRZIOda4Esn/QQeis5kF11ImHYtKoWxA, with debug_info, not stripped
+ rm /Users/rgee0/.arkade/bin/crossplane
+ echo

+ ./arkade get crossplane --arch aarch64 --os linux --quiet
+ file /Users/rgee0/.arkade/bin/crossplane
/Users/rgee0/.arkade/bin/crossplane: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, Go BuildID=rdqyJRtk8j8G63f4-SJ2/YEFmKKXVfQ9HWUI5al_r/JlVJNaxwmgxbd1lvOrjZ/mbnxJaeUUifUcvdlooIe, with debug_info, not stripped
+ rm /Users/rgee0/.arkade/bin/crossplane
+ echo

+ ./arkade get crossplane --arch x86_64 --os mingw --quiet
+ file /Users/rgee0/.arkade/bin/crossplane.exe
/Users/rgee0/.arkade/bin/crossplane.exe: PE32+ executable (console) x86-64, for MS Windows
+ rm /Users/rgee0/.arkade/bin/crossplane.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

@alexellis alexellis merged commit b8766b4 into alexellis:master Oct 26, 2024
2 checks passed
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.

Add Crossplane CLI
2 participants