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

Several arguments for input #3

Open
xgrommx opened this issue Aug 31, 2022 · 1 comment
Open

Several arguments for input #3

xgrommx opened this issue Aug 31, 2022 · 1 comment

Comments

@xgrommx
Copy link

xgrommx commented Aug 31, 2022

Hello @n4o847 , how can I use not only one arguments? for example

type Main<Input1 extends string, Input2 extends string> = `Hello, ${Input1} ${Input2}!\n`;

export default Main;

or maybe

type Main<Input extends [string, number]> = `Hello, ${Input[0]} ${Input[1]}`;

export default Main;
@n4o847
Copy link
Owner

n4o847 commented Aug 31, 2022

Hi,

This tool was originally intended to be used as a CLI, so it only takes one string argument, which corresponds to stdin. Like this:

$ echo -n "world" | ctts hello.ts

However, if it is also to be used as a library, it might be interesting to support multiple arguments. For what purpose are you thinking of using it as a library?

@n4o847 n4o847 mentioned this issue Sep 26, 2022
5 tasks
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