Skip to content

feat: allow non-interactive input #20

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

novusnota
Copy link
Member

@novusnota novusnota commented May 13, 2025

Closes #19

That is, the following and similar approaches are now possible:

./bin/index.js << EOF
package-name
ContractName
EOF

There, the input stream is supplied to the create-tact at once, such that it no longer needs to interactively prompt the user for input — a simple alternative to arbitrary CLI arguments (#8, #10).

Without this PR, the command above throws the following error: Error [ERR_USE_AFTER_CLOSE]: readline was closed.

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

Successfully merging this pull request may close these issues.

Consider allowing processing non-TTY, non-interactive input
1 participant