anishshobithps / anishshobithps/snipshot

Line-range selection (file.ts:10-30 / --lines)

Aperta
#18 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area: input effort: medium enhancement
Lingua principale
TypeScript
Stelle
1
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Snapshot only part of a file:
- `snipshot file.ts:10-30`
- or `--lines 10-30`

Pairs with `--line-start` so displayed numbers match the source.

- [ ] Parse `path:start-end` and `--lines`
- [ ] Slice code before render, preserve numbering

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by finding the CLI argument parsing for `snipshot file.ts` and existing handling of `--line-start`. Add support for `path:start-end` and `--lines 10-30`, then trace where code is passed to rendering so it can be sliced before render. Done means both example commands snapshot only the requested range and displayed line numbers still match the source.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
cli
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Specificata chiaramente
Idoneità per principianti
68/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.