bump version to 0.94.3 (#13055)

This commit is contained in:
Wind
2024-06-05 06:52:40 +08:00
committed by GitHub
parent be8c1dc006
commit ad5a6cdc00
42 changed files with 273 additions and 272 deletions

View File

@ -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!")