anishshobithps / anishshobithps/snipshot
stdin / pipe input with --lang override
- Ngôn ngữ chính
- TypeScript
- Star
- 1
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- cli
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 68/100