File tree 3 files changed +4
-22
lines changed
3 files changed +4
-22
lines changed Original file line number Diff line number Diff line change 16
16
strategy :
17
17
matrix :
18
18
rust :
19
- - 1.60 .0
19
+ - 1.63 .0
20
20
- stable
21
21
- beta
22
22
steps :
40
40
strategy :
41
41
matrix :
42
42
rust :
43
- - 1.60 .0
43
+ - 1.63 .0
44
44
- stable
45
45
- beta
46
46
# - nightly
92
92
- uses : actions/checkout@v3
93
93
- uses : dtolnay/rust-toolchain@master
94
94
with :
95
- toolchain : 1.60 .0
95
+ toolchain : 1.63 .0
96
96
components : rustfmt
97
97
- name : cargo-fmt
98
98
run : cargo fmt -- --check
Original file line number Diff line number Diff line change 3
3
[ ![ crates.io] ( https://img.shields.io/crates/v/rexpect.svg )] ( https://crates.io/crates/rexpect )
4
4
[ ![ Released API docs] ( https://docs.rs/rexpect/badge.svg )] ( https://docs.rs/rexpect )
5
5
[ ![ 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 )]
7
7
8
8
Spawn, control, and respond to expected patterns of child applications and
9
9
processes, 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 {
172
172
}
173
173
174
174
/// 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
- /// ```
193
175
impl PtySession {
194
176
fn new ( process : PtyProcess , timeout_ms : Option < u64 > ) -> Result < Self , Error > {
195
177
let f = process. get_file_handle ( ) ?;
You can’t perform that action at this time.
0 commit comments