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

Simplify CLI semantics #62

Open
2 tasks
booniepepper opened this issue Oct 30, 2023 · 0 comments
Open
2 tasks

Simplify CLI semantics #62

booniepepper opened this issue Oct 30, 2023 · 0 comments

Comments

@booniepepper
Copy link
Collaborator

booniepepper commented Oct 30, 2023

  • dt should always evaluate its args, print the final value(s), and then exit successfully
    • dt 1 1 + should print 2 and exit (no getlines at all)
    • echo 2 | dt 1 + should print 3
    • dt 1 1 + | cat should print 4
    • dt repl will launch a repl (or dt --interactive or dt -i or something)
  • consider always streaming input by default (i.e. the args are evaluated over each line) and do the 1.x thing of reading all lines first as a command that reads until EOF
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

1 participant