{ "title": "nushell", "extensions": ["nushell", "footer", "model-info"], "args": ["--nushell"], "cols": 100, "rows": 26, "files": { "src/main.rs": "fn main() {\n println!(\"hello\");\n}\n", "src/lib.rs": "pub fn add(a: i32, b: i32) -> i32 { a + b }\n", "Cargo.toml": "[package]\nname = \"demo\"\nversion = \"0.1.0\"\n", "big.log": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n" }, "turns": [ { "text": "Listing files by size with one Nu pipeline.", "tool": { "name": "nu", "arguments": { "command": "ls **/* | where type == file | sort-by size --reverse | select name size | first 4" } }, "usage": { "input": 1900, "output": 60 } }, { "text": "big.log dominates at about 650 bytes; the Rust sources are tiny.", "usage": { "input": 2300, "output": 22 } }, { "text": "Define and use a 100 byte threshold in one fresh Nu call.", "tool": { "name": "nu", "arguments": { "command": "let threshold = 100b; ls **/* | where type == file and size > $threshold | get name" } }, "usage": { "input": 2600, "output": 36 } }, { "text": "Only big.log exceeds the 100 byte threshold used in that call.", "usage": { "input": 3200, "output": 18 } } ], "steps": [ { "expect": "demo-model", "hold": 6 }, { "key": "ctrl-o", "hold": 0.5 }, { "type": "what are the biggest files here?", "key": "enter", "expect": "Rust sources are tiny", "timeout": 30000, "hold": 14.0 }, { "type": "define a 100 byte threshold and list files that exceed it, all in one Nu call", "key": "enter", "expect": "used in that call", "timeout": 30000, "hold": 14.0 }, { "key": "ctrl-c", "hold": 0.3 }, { "key": "ctrl-c" } ] }