MCPcopy Create free account

hub / github.com/corrode/write-yourself-a-shell / functions

Functions113 in github.com/corrode/write-yourself-a-shell

↓ 10 callersMethodexample
(mut self, example: &'a str)
tests/all/utils.rs:28
↓ 10 callersMethodkill_after
Wait duration and kill the command afterwards. Useful to test commands that don't exit on their own.
tests/all/utils.rs:35
↓ 10 callersMethodrun
(&self)
tests/all/utils.rs:40
↓ 10 callersMethodwith_stdin
(mut self, stdin: &'a str)
tests/all/utils.rs:23
↓ 2 callersFunctionchains_from_line
(line: String)
examples/block3.rs:272
↓ 2 callersFunctionchains_from_line
(line: String)
examples/block5.rs:334
↓ 2 callersFunctionchains_from_line
(line: &str)
examples/final.rs:158
↓ 2 callersFunctionchains_from_line
(line: String)
examples/block4.rs:324
↓ 2 callersFunctionchains_from_line
(line: String)
examples/block2.rs:173
↓ 2 callersMethodparse
(mut self)
examples/block3.rs:118
↓ 2 callersMethodparse
(mut self)
examples/block5.rs:155
↓ 2 callersMethodparse
(mut self)
examples/block4.rs:155
↓ 2 callersMethodwait
(&self, mut child: Child)
tests/all/utils.rs:70
↓ 1 callersMethodadd
Add a command to the history.
examples/block5.rs:98
↓ 1 callersMethodadd
Add a command to the history.
examples/block4.rs:100
↓ 1 callersFunctiongenerate_temp_file_name
()
tests/all/block4.rs:8
↓ 1 callersMethodparse
(mut self)
examples/block2.rs:41
↓ 1 callersMethodparse_cmd
(&mut self, binary: String)
examples/block3.rs:141
↓ 1 callersMethodparse_cmd
(&mut self, binary: String)
examples/block5.rs:178
↓ 1 callersMethodparse_cmd
(&mut self, binary: String)
examples/block4.rs:178
↓ 1 callersMethodparse_cmd
(&mut self, binary: String)
examples/block2.rs:64
↓ 1 callersMethodparse_next
(&mut self)
examples/block3.rs:130
↓ 1 callersMethodparse_next
(&mut self)
examples/block5.rs:167
↓ 1 callersMethodparse_next
(&mut self)
examples/block4.rs:167
↓ 1 callersMethodparse_next
(&mut self)
examples/block2.rs:53
↓ 1 callersFunctionread_line
()
examples/block3.rs:264
↓ 1 callersFunctionread_line
()
examples/block5.rs:326
↓ 1 callersFunctionread_line
()
examples/block1.rs:57
↓ 1 callersFunctionread_line
()
examples/final.rs:150
↓ 1 callersFunctionread_line
()
examples/block4.rs:316
↓ 1 callersFunctionread_line
()
examples/block2.rs:165
↓ 1 callersMethodrun
Run the `cd` command. This changes the current directory of the process (our shell in this case).
examples/block3.rs:48
↓ 1 callersMethodrun
Run the `cd` command.
examples/block5.rs:40
↓ 1 callersMethodrun
(self)
examples/block1.rs:25
↓ 1 callersMethodrun
(self)
examples/final.rs:44
↓ 1 callersMethodrun
Run the `cd` command.
examples/block4.rs:42
↓ 1 callersMethodrun
(self)
examples/block2.rs:90
↓ 1 callersMethodrun_external
(self)
examples/block3.rs:234
↓ 1 callersMethodrun_external
(&self, prev_output: Option<Output>)
examples/block5.rs:274
↓ 1 callersMethodrun_external
(self)
examples/block4.rs:284
↓ 1 callersMethodrun_shell
(&self)
tests/all/utils.rs:46
↓ 1 callersFunctionshow_prompt
If `stdout` is printed to a terminal, print a prompt. Otherwise, do nothing. This allows to redirect the shell `stdout` to a file or another process,
examples/block3.rs:255
↓ 1 callersFunctionshow_prompt
If `stdout` is printed to a terminal, print a prompt. Otherwise, do nothing. This allows to redirect the shell `stdout` to a file or another process,
examples/block5.rs:317
↓ 1 callersFunctionshow_prompt
If stdout is printed to a terminal, print a prompt. Otherwise, do nothing. This allows to redirect the shell stdout to a file or another process, with
examples/block1.rs:48
↓ 1 callersFunctionshow_prompt
If stdout is printed to a terminal, print a prompt. Otherwise, do nothing. This allows to redirect the shell stdout to a file or another process, with
examples/final.rs:141
↓ 1 callersFunctionshow_prompt
If `stdout` is printed to a terminal, print a prompt. Otherwise, do nothing. This allows to redirect the shell `stdout` to a file or another process,
examples/block4.rs:307
↓ 1 callersFunctionshow_prompt
If `stdout` is printed to a terminal, print a prompt. Otherwise, do nothing. This allows to redirect the shell `stdout` to a file or another process,
examples/block2.rs:156
↓ 1 callersMethodwrite_stdin
(&self, child: &mut Child)
tests/all/utils.rs:57
Functioncmd_with_args_is_parsed
()
examples/block3.rs:309
Functioncmd_with_args_is_parsed
()
examples/block5.rs:371
Functioncmd_with_args_is_parsed
()
examples/block1.rs:86
Functioncmd_with_args_is_parsed
()
examples/final.rs:193
Functioncmd_with_args_is_parsed
()
examples/block4.rs:361
Functioncmd_with_args_is_parsed
()
examples/block2.rs:210
Functioncmd_with_no_args_is_parsed
()
examples/block3.rs:296
Functioncmd_with_no_args_is_parsed
()
examples/block5.rs:358
Functioncmd_with_no_args_is_parsed
()
examples/block1.rs:75
Functioncmd_with_no_args_is_parsed
()
examples/final.rs:180
Functioncmd_with_no_args_is_parsed
()
examples/block4.rs:348
Functioncmd_with_no_args_is_parsed
()
examples/block2.rs:197
Functioncmds_are_parsed
()
examples/block3.rs:322
Functioncmds_are_parsed
()
examples/block5.rs:384
Functioncmds_are_parsed
()
examples/final.rs:206
Functioncmds_are_parsed
()
examples/block4.rs:374
Functioncmds_are_parsed
()
examples/block2.rs:223
Methodfrom_line
(line: &str)
examples/block1.rs:17
Functioninvalid_cd_doesnt_change_dir
()
tests/all/block3.rs:39
Methodis_operator
(token: &str)
examples/block3.rs:202
Methodis_operator
(token: &str)
examples/block5.rs:238
Methodis_operator
(token: &str)
examples/final.rs:88
Methodis_operator
(token: &str)
examples/block4.rs:239
Methodis_operator
(token: &str)
examples/block2.rs:125
Functionmain
()
src/main.rs:2
Functionmain
()
examples/block3.rs:241
Functionmain
()
examples/block5.rs:298
Functionmain
()
examples/block1.rs:35
Functionmain
()
examples/final.rs:127
Functionmain
()
examples/block4.rs:291
Functionmain
()
examples/block2.rs:142
Methodnew
()
tests/all/utils.rs:15
Methodnew
Create a new `Cd` command.
examples/block3.rs:40
Methodnew
Create a new `Cd` command.
examples/block5.rs:35
Methodnew
Create a new `Cd` command.
examples/block4.rs:37
Methodnew
(chain: &str)
examples/block2.rs:34
Functionno_cmd_is_parsed_from_empty_line
()
examples/block3.rs:291
Functionno_cmd_is_parsed_from_empty_line
()
examples/block5.rs:353
Functionno_cmd_is_parsed_from_empty_line
()
examples/block1.rs:70
Functionno_cmd_is_parsed_from_empty_line
()
examples/final.rs:175
Functionno_cmd_is_parsed_from_empty_line
()
examples/block4.rs:343
Functionno_cmd_is_parsed_from_empty_line
()
examples/block2.rs:192
Methodparse
(command: &'a str)
examples/final.rs:31
Functionparse_chains
(line: &str)
examples/block3.rs:286
Functionparse_chains
(line: &str)
examples/block5.rs:348
Functionparse_chains
(line: &str)
examples/final.rs:170
Functionparse_chains
(line: &str)
examples/block4.rs:338
Functionparse_chains
(line: &str)
examples/block2.rs:187
Methodparse_cmd
( binary: &'a str, tokens: &mut Peekable<I>, )
examples/final.rs:92
Methodparse_next
(tokens: &mut Peekable<I>)
examples/final.rs:71
Methodparse_operator
(token: &str)
examples/block3.rs:194
Methodparse_operator
(token: &str)
examples/block5.rs:229
next →1–100 of 113, ranked by callers