mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
bump version to 0.94.3 (#13055)
This commit is contained in:
@ -27,7 +27,7 @@ import sys
|
||||
import json
|
||||
|
||||
|
||||
NUSHELL_VERSION = "0.94.2"
|
||||
NUSHELL_VERSION = "0.94.3"
|
||||
|
||||
|
||||
def signatures():
|
||||
@ -124,7 +124,7 @@ def process_call(id, plugin_call):
|
||||
span = plugin_call["call"]["head"]
|
||||
|
||||
# Creates a Value of type List that will be encoded and sent to Nushell
|
||||
f = lambda x, y: {
|
||||
def f(x, y): return {
|
||||
"Int": {
|
||||
"val": x * y,
|
||||
"span": span
|
||||
@ -169,7 +169,7 @@ def tell_nushell_hello():
|
||||
"""
|
||||
hello = {
|
||||
"Hello": {
|
||||
"protocol": "nu-plugin", # always this value
|
||||
"protocol": "nu-plugin", # always this value
|
||||
"version": NUSHELL_VERSION,
|
||||
"features": []
|
||||
}
|
||||
@ -246,8 +246,9 @@ def plugin():
|
||||
input = json.loads(line)
|
||||
handle_input(input)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) == 2 and sys.argv[1] == "--stdio":
|
||||
plugin()
|
||||
else:
|
||||
print("Run me from inside nushell!")
|
||||
print("Run me from inside nushell!")
|
||||
|
Reference in New Issue
Block a user