Scrap
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 10/100
Research direction
The issue names no repository files or failing tests; start by reviewing the inline Rust sketches for Parser, Node, Text, Chars, Bytes, and Parse, along with the rustyline reference. The payload does not define a concrete change or completion criteria, so scope and expected behavior would need to be established before implementation.
Written by the indexing model from the issue text.
Description
enum Node<'text> {
Text{ text: &'text }
}
struct Text<'text> {
text: &'text str,
// text:
}
struct Chars<'chars> {
chars: &'chars [char],
}
struct Bytes<'input> {
bytes: &'input [u8],
}
struct Parse {
Incomplete,
Completions
Bad,
Good,
}
// https://github.com/kkawakam/rustyline
// keycodes
// bytes from stdin
// - whitespace splitting / string escaping
// - parse if
// - parse while
// - parse loop
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}
struct Parser;
impl shellkit::Parser for Parser {
fn parse(text: &str) -> Command {
Command::new(text)
}
}
fn basic() -> Shell {
shellkit::Builder().parser(Parser).build()
}
fn test() {
let shell = basic();
}
- Dominant language
- Rust
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from casey/shellkit
-
Components Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
Variants Open
Difficulty 5/5 Over a week Newbie friendliness 15/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#616 ·
-
bug rules
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
app bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
IronCoreLabs/ironcore-alloy#346 ·
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 65/100