Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/corrode/write-yourself-a-shell
/ functions
Functions
113 in github.com/corrode/write-yourself-a-shell
⨍
Functions
113
◇
Types & classes
29
↓ 10 callers
Method
example
(mut self, example: &'a str)
tests/all/utils.rs:28
↓ 10 callers
Method
kill_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 callers
Method
run
(&self)
tests/all/utils.rs:40
↓ 10 callers
Method
with_stdin
(mut self, stdin: &'a str)
tests/all/utils.rs:23
↓ 2 callers
Function
chains_from_line
(line: String)
examples/block3.rs:272
↓ 2 callers
Function
chains_from_line
(line: String)
examples/block5.rs:334
↓ 2 callers
Function
chains_from_line
(line: &str)
examples/final.rs:158
↓ 2 callers
Function
chains_from_line
(line: String)
examples/block4.rs:324
↓ 2 callers
Function
chains_from_line
(line: String)
examples/block2.rs:173
↓ 2 callers
Method
parse
(mut self)
examples/block3.rs:118
↓ 2 callers
Method
parse
(mut self)
examples/block5.rs:155
↓ 2 callers
Method
parse
(mut self)
examples/block4.rs:155
↓ 2 callers
Method
wait
(&self, mut child: Child)
tests/all/utils.rs:70
↓ 1 callers
Method
add
Add a command to the history.
examples/block5.rs:98
↓ 1 callers
Method
add
Add a command to the history.
examples/block4.rs:100
↓ 1 callers
Function
generate_temp_file_name
()
tests/all/block4.rs:8
↓ 1 callers
Method
parse
(mut self)
examples/block2.rs:41
↓ 1 callers
Method
parse_cmd
(&mut self, binary: String)
examples/block3.rs:141
↓ 1 callers
Method
parse_cmd
(&mut self, binary: String)
examples/block5.rs:178
↓ 1 callers
Method
parse_cmd
(&mut self, binary: String)
examples/block4.rs:178
↓ 1 callers
Method
parse_cmd
(&mut self, binary: String)
examples/block2.rs:64
↓ 1 callers
Method
parse_next
(&mut self)
examples/block3.rs:130
↓ 1 callers
Method
parse_next
(&mut self)
examples/block5.rs:167
↓ 1 callers
Method
parse_next
(&mut self)
examples/block4.rs:167
↓ 1 callers
Method
parse_next
(&mut self)
examples/block2.rs:53
↓ 1 callers
Function
read_line
()
examples/block3.rs:264
↓ 1 callers
Function
read_line
()
examples/block5.rs:326
↓ 1 callers
Function
read_line
()
examples/block1.rs:57
↓ 1 callers
Function
read_line
()
examples/final.rs:150
↓ 1 callers
Function
read_line
()
examples/block4.rs:316
↓ 1 callers
Function
read_line
()
examples/block2.rs:165
↓ 1 callers
Method
run
Run the `cd` command. This changes the current directory of the process (our shell in this case).
examples/block3.rs:48
↓ 1 callers
Method
run
Run the `cd` command.
examples/block5.rs:40
↓ 1 callers
Method
run
(self)
examples/block1.rs:25
↓ 1 callers
Method
run
(self)
examples/final.rs:44
↓ 1 callers
Method
run
Run the `cd` command.
examples/block4.rs:42
↓ 1 callers
Method
run
(self)
examples/block2.rs:90
↓ 1 callers
Method
run_external
(self)
examples/block3.rs:234
↓ 1 callers
Method
run_external
(&self, prev_output: Option<Output>)
examples/block5.rs:274
↓ 1 callers
Method
run_external
(self)
examples/block4.rs:284
↓ 1 callers
Method
run_shell
(&self)
tests/all/utils.rs:46
↓ 1 callers
Function
show_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 callers
Function
show_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 callers
Function
show_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 callers
Function
show_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 callers
Function
show_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 callers
Function
show_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 callers
Method
write_stdin
(&self, child: &mut Child)
tests/all/utils.rs:57
Function
cmd_with_args_is_parsed
()
examples/block3.rs:309
Function
cmd_with_args_is_parsed
()
examples/block5.rs:371
Function
cmd_with_args_is_parsed
()
examples/block1.rs:86
Function
cmd_with_args_is_parsed
()
examples/final.rs:193
Function
cmd_with_args_is_parsed
()
examples/block4.rs:361
Function
cmd_with_args_is_parsed
()
examples/block2.rs:210
Function
cmd_with_no_args_is_parsed
()
examples/block3.rs:296
Function
cmd_with_no_args_is_parsed
()
examples/block5.rs:358
Function
cmd_with_no_args_is_parsed
()
examples/block1.rs:75
Function
cmd_with_no_args_is_parsed
()
examples/final.rs:180
Function
cmd_with_no_args_is_parsed
()
examples/block4.rs:348
Function
cmd_with_no_args_is_parsed
()
examples/block2.rs:197
Function
cmds_are_parsed
()
examples/block3.rs:322
Function
cmds_are_parsed
()
examples/block5.rs:384
Function
cmds_are_parsed
()
examples/final.rs:206
Function
cmds_are_parsed
()
examples/block4.rs:374
Function
cmds_are_parsed
()
examples/block2.rs:223
Method
from_line
(line: &str)
examples/block1.rs:17
Function
invalid_cd_doesnt_change_dir
()
tests/all/block3.rs:39
Method
is_operator
(token: &str)
examples/block3.rs:202
Method
is_operator
(token: &str)
examples/block5.rs:238
Method
is_operator
(token: &str)
examples/final.rs:88
Method
is_operator
(token: &str)
examples/block4.rs:239
Method
is_operator
(token: &str)
examples/block2.rs:125
Function
main
()
src/main.rs:2
Function
main
()
examples/block3.rs:241
Function
main
()
examples/block5.rs:298
Function
main
()
examples/block1.rs:35
Function
main
()
examples/final.rs:127
Function
main
()
examples/block4.rs:291
Function
main
()
examples/block2.rs:142
Method
new
()
tests/all/utils.rs:15
Method
new
Create a new `Cd` command.
examples/block3.rs:40
Method
new
Create a new `Cd` command.
examples/block5.rs:35
Method
new
Create a new `Cd` command.
examples/block4.rs:37
Method
new
(chain: &str)
examples/block2.rs:34
Function
no_cmd_is_parsed_from_empty_line
()
examples/block3.rs:291
Function
no_cmd_is_parsed_from_empty_line
()
examples/block5.rs:353
Function
no_cmd_is_parsed_from_empty_line
()
examples/block1.rs:70
Function
no_cmd_is_parsed_from_empty_line
()
examples/final.rs:175
Function
no_cmd_is_parsed_from_empty_line
()
examples/block4.rs:343
Function
no_cmd_is_parsed_from_empty_line
()
examples/block2.rs:192
Method
parse
(command: &'a str)
examples/final.rs:31
Function
parse_chains
(line: &str)
examples/block3.rs:286
Function
parse_chains
(line: &str)
examples/block5.rs:348
Function
parse_chains
(line: &str)
examples/final.rs:170
Function
parse_chains
(line: &str)
examples/block4.rs:338
Function
parse_chains
(line: &str)
examples/block2.rs:187
Method
parse_cmd
( binary: &'a str, tokens: &mut Peekable<I>, )
examples/final.rs:92
Method
parse_next
(tokens: &mut Peekable<I>)
examples/final.rs:71
Method
parse_operator
(token: &str)
examples/block3.rs:194
Method
parse_operator
(token: &str)
examples/block5.rs:229
next →
1–100 of 113, ranked by callers