Scrap
- Vorherrschende Sprache
- Rust
- Sterne
- 0
- Forks
- 1
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
```rust
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();
}
```
Beitragsleitfaden
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- rust
- Bereich
- cli
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 10/100