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
repl::ReplSession::new function is private #31
Comments
Hi @yamaura thank you for opening the issue. I think you're right we can make it public. |
I think it was private because it was suppose to be a rare case when someone would use it. Can I ask you what process you're spawning? |
Do you need it to be published, soon? I think we need to do #32 and then we could release the new version. |
Sorry for the lack of explanation. So really I want to like this: let session = expectrl::spawn("telnet remote").unwrap();
// session.expect("login:)....
// Do something log in procedure here
// It depends on remote machine, *nix, switches, special hardware and so on.
let session = expectrl::repl::ReplSession::new(session, "EXPECT_PROMPT".to_string(), None, false);
let recv = session.execute("send"); No problem, as I am in no hurry to publish it. |
released in 0.4.0 please open an issue if there any more ones. Thank you once again to addressing it. |
Thanks for the wonderful library.
I want to create my custom ReplSession, but ReplSession::new function is private. So how can I create ReplSession from some sessions outside of this library?
I want to run program following:
The text was updated successfully, but these errors were encountered: