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

add new nushell syntax for input output types #159

Closed
fdncred opened this issue Oct 5, 2023 · 2 comments
Closed

add new nushell syntax for input output types #159

fdncred opened this issue Oct 5, 2023 · 2 comments

Comments

@fdncred
Copy link
Contributor

fdncred commented Oct 5, 2023

JT added some new syntax to custom commands to allow one to specify the input and output types. You can see the details in PR9690

For example (a single int-to-int input/output pair):

def foo []: int -> int { ... }

You can also have multiple input/output pairs:

def bar []: [int -> string, string -> list<string>] { ... }

@glcraft I hope it's not a problem tagging you on new syntax. You're help would be appreciated here too.

Related to #146

@glcraft
Copy link
Contributor

glcraft commented Oct 5, 2023

Yep ok, I'm going to check this out 👍

@glcraft glcraft mentioned this issue Oct 6, 2023
@fdncred
Copy link
Contributor Author

fdncred commented Oct 6, 2023

closed by #160

@fdncred fdncred closed this as completed Oct 6, 2023
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

No branches or pull requests

2 participants