-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refactor the whole thing (#17)
- Loading branch information
1 parent
44dcfe7
commit ca05b2b
Showing
99 changed files
with
5,240 additions
and
13,865 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# DO NOT EDIT | ||
# ----------- | ||
# This file is generated by the `Paperspace/cli` repository and automatically | ||
# merged into the `Paperspace/homebrew-tap` repository. Any changes made to this | ||
# file will be overwritten. | ||
|
||
# typed: false | ||
# frozen_string_literal: true | ||
|
||
class Pscale < Formula | ||
desc "The Paperspace CLI" | ||
homepage "https://github.com/Paperspace/cli" | ||
version "{{PSPACE_VERSION}}" | ||
license "Apache 2.0" | ||
|
||
on_macos do | ||
if Hardware::CPU.arm? | ||
url "https://github.com/Paperspace/cli/releases/download/v{{PSPACE_VERSION}}/pspace-macos-arm.zip" | ||
sha256 "{{PSPACE_SHA256_MACOS_ARM}}" | ||
|
||
def install | ||
bin.install "pspace" | ||
generate_completions_from_executable(bin/"pspace", "completions", shells: [:bash, :zsh, :fish]) | ||
end | ||
end | ||
if Hardware::CPU.intel? | ||
url "https://github.com/Paperspace/cli/releases/download/v{{PSPACE_VERSION}}/pspace-macos.zip" | ||
sha256 "{{PSPACE_SHA256_MACOS}}" | ||
|
||
def install | ||
bin.install "pspace" | ||
generate_completions_from_executable(bin/"pspace", "completions", shells: [:bash, :zsh, :fish]) | ||
end | ||
end | ||
end | ||
|
||
on_linux do | ||
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit? | ||
url "https://github.com/Paperspace/cli/releases/download/v{{PSPACE_VERSION}}/pspace-linux.zip" | ||
sha256 "{{PSPACE_SHA256_LINUX}}" | ||
|
||
def install | ||
bin.install "pspace" | ||
generate_completions_from_executable(bin/"pspace", "completions", shells: [:bash, :zsh, :fish]) | ||
end | ||
end | ||
end | ||
|
||
test do | ||
system "#{bin}/pspace --version" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"version": "{{PSPACE_VERSION}}", | ||
"architecture": { | ||
"64bit": { | ||
"url": "https://github.com/Paperspace/cli/releases/download/v{{PSPACE_VERSION}}/pspace-windows.zip", | ||
"bin": ["pspace.exe"], | ||
"hash": "{{PSPACE_SHA256_WINDOWS}}" | ||
} | ||
}, | ||
"homepage": "https://github.com/Paperspace/cli", | ||
"license": "Apache 2.0", | ||
"description": "The Paperspace CLI" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
node_modules | ||
lock.json | ||
.paperspace | ||
.pspace | ||
.coverage |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.