Rust examples
Run a command interactively in program. For example, when user run npm login
command:
- The shell will first prompt you to input
Username
. - After you input your username, then the shell will prompt you to input
Password
andemail
. - When you input password and email, then the shell will print successful or errored message.
The command
example use thread
to process stdin/stdout/stderr
concurrently.
The async version of interactive command with async_std
.