nushell 0.7.0

add starship prompt feature

This feature cannot be activated dynamically; it needs to enabled at compilation time.

Closes #48041.

Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
Waldir Pimenta 2019-12-18 23:32:02 +00:00 committed by Rui Chen
parent c3c72888a0
commit 731731fe22

View file

@ -1,8 +1,8 @@
class Nushell < Formula
desc "Modern shell for the GitHub era"
homepage "https://www.nushell.sh"
url "https://github.com/nushell/nushell/archive/0.6.1.tar.gz"
sha256 "3f7878df7d77fe330e6840428845800d9eefc2ad8248617c42004030ecf527f0"
url "https://github.com/nushell/nushell/archive/0.7.0.tar.gz"
sha256 "9cfb6be335f7a06ccaf7cc2a06075a23ed6e2e2fdd6ea7fbc165a7d4a30990f9"
head "https://github.com/nushell/nushell.git"
bottle do
@ -17,10 +17,10 @@ class Nushell < Formula
depends_on "openssl@1.1"
def install
system "cargo", "install", "--locked", "--root", prefix, "--path", "."
system "cargo", "install", "--features", "stable", "--locked", "--root", prefix, "--path", "."
end
test do
assert_equal "#{Dir.pwd}> 2\n#{Dir.pwd}> ", pipe_output("#{bin}/nu", 'echo \'{"foo":1, "bar":2}\' | from-json | get bar | echo $it')
assert_equal "\n~ \n 2\n\n~ \n ", pipe_output("#{bin}/nu", 'echo \'{"foo":1, "bar":2}\' | from-json | get bar | echo $it')
end
end