File tree Expand file tree Collapse file tree 3 files changed +4
-22
lines changed Expand file tree Collapse file tree 3 files changed +4
-22
lines changed Original file line number Diff line number Diff line change 1616 strategy :
1717 matrix :
1818 rust :
19- - 1.60 .0
19+ - 1.63 .0
2020 - stable
2121 - beta
2222 steps :
4040 strategy :
4141 matrix :
4242 rust :
43- - 1.60 .0
43+ - 1.63 .0
4444 - stable
4545 - beta
4646 # - nightly
9292 - uses : actions/checkout@v3
9393 - uses : dtolnay/rust-toolchain@master
9494 with :
95- toolchain : 1.60 .0
95+ toolchain : 1.63 .0
9696 components : rustfmt
9797 - name : cargo-fmt
9898 run : cargo fmt -- --check
Original file line number Diff line number Diff line change 33[ ![ crates.io] ( https://img.shields.io/crates/v/rexpect.svg )] ( https://crates.io/crates/rexpect )
44[ ![ Released API docs] ( https://docs.rs/rexpect/badge.svg )] ( https://docs.rs/rexpect )
55[ ![ Master API docs] ( https://img.shields.io/badge/docs-master-2f343b.svg )] ( http://philippkeller.github.io/rexpect )
6- [ ![ MSRV] ( https://img.shields.io/badge/MSRV-1.60 .0-blue )]
6+ [ ![ MSRV] ( https://img.shields.io/badge/MSRV-1.63 .0-blue )]
77
88Spawn, control, and respond to expected patterns of child applications and
99processes, enabling the automation of interactions and testing. Components
Original file line number Diff line number Diff line change @@ -172,24 +172,6 @@ impl DerefMut for PtySession {
172172}
173173
174174/// Start a process in a tty session, write and read from it
175- ///
176- /// # Example
177- ///
178- /// ```
179- ///
180- /// use rexpect::spawn;
181- /// # use rexpect::error::Error;
182- ///
183- /// # fn main() {
184- /// # || -> Result<(), Error> {
185- /// let mut s = spawn("cat", Some(1000))?;
186- /// s.send_line("hello, polly!")?;
187- /// let line = s.read_line()?;
188- /// assert_eq!("hello, polly!", line);
189- /// # Ok(())
190- /// # }().expect("test failed");
191- /// # }
192- /// ```
193175impl PtySession {
194176 fn new ( process : PtyProcess , timeout_ms : Option < u64 > ) -> Result < Self , Error > {
195177 let f = process. get_file_handle ( ) ?;
You can’t perform that action at this time.
0 commit comments