generated from JoshuaKGoldberg/create-typescript-app
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
status: accepting prsPlease, send a pull request to resolve this! 🙏Please, send a pull request to resolve this! 🙏type: featureNew enhancement or requestNew enhancement or request
Description
Feature Request Checklist
- I have pulled the latest
mainbranch of the repository. - I have searched for related issues and found none that matched my issue.
Overview
Over in JoshuaKGoldberg/create-typescript-app#2007, I'm working on an options default value that needs to read in from every .yml file within .github/, including .github/actions/*/*.yml and .github/workflows/*.yml. The current implementation has a lot of manual readDirectory calls to get a list of files.
It would be much cleaner to use a glob, like:
const files = await take(inputFromGlob, { globPaths: ['.github/**/*.yml'] });...which on the inside would need to call to a new bingo-systems > ReadingFileSystem method like, maybe, glob:
import { createReadingFileSystem } from "bingo-systems";
const files = createReadingFileSystem();
const globbedPaths = await files.glob(".github/**/*.yml");The result would be a string[] of matched paths, like ['.github/workflows/ci.yml'].
Accepting PRs. 🚀
Additional Info
💝
Metadata
Metadata
Assignees
Labels
status: accepting prsPlease, send a pull request to resolve this! 🙏Please, send a pull request to resolve this! 🙏type: featureNew enhancement or requestNew enhancement or request