File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+ // cat.js — scaffold (no functionality yet)
3+ // Next commits will add:
4+ // - basic file output
5+ // - -n (number all lines)
6+ // - -b (number non-blank)
7+
8+ function main ( ) {
9+ const args = process . argv . slice ( 2 ) ;
10+ if ( args . length === 0 ) {
11+ console . error ( "Usage: node cat.js <file...>" ) ;
12+ process . exit ( 1 ) ;
13+ }
14+ console . log ( "cat: scaffold ready (implementation comes in next commit)" ) ;
15+ }
16+
17+ if ( require . main === module ) main ( ) ;
Original file line number Diff line number Diff line change 1+ {
2+ "type" : " module" ,
3+ "name" : " implement-shell-tools-with-node" ,
4+ "version" : " 1.0.0" ,
5+ "description" : " Your task is to re-implement shell tools you have used." ,
6+ "main" : " index.js" ,
7+ "scripts" : {
8+ "test" : " echo \" Error: no test specified\" && exit 1"
9+ },
10+ "author" : " pezhman azizi" ,
11+ "license" : " ISC"
12+ }
You can’t perform that action at this time.
0 commit comments