anishshobithps / anishshobithps/snipshot

stdin / pipe input with --lang override

Offen
#17 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area: input effort: medium enhancement priority: high
Vorherrschende Sprache
TypeScript
Sterne
1
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Allow piping code in: `cat f.ts | snipshot - --lang ts`, enabling `git diff | snipshot`. Requires a language override since there's no extension.
- `snipshot -` reads stdin
- `--lang ` forces the Shiki language (extend `resolveLanguage()`)

- [ ] stdin reading
- [ ] `--lang` override + validation against Shiki languages

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start by locating the CLI entry point that handles the input path and the existing resolveLanguage() function. Run the documented file-input command, then try `cat f.ts | snipshot -` and `cat f.ts | snipshot - --lang ts` to observe current behavior. Done means stdin is accepted and --lang is validated against the available Shiki languages.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript
Bereich
cli
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
68/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.