Skip to content

Add --omit-paths flag to templates apply - #868

Merged
joshspicer merged 7 commits into
mainfrom
joshspicer/omit-paths
Aug 12, 2024
Merged

joshspicer merged 7 commits into
mainfrom
joshspicer/omit-paths

Conversation

@joshspicer

@joshspicer joshspicer commented Aug 1, 2024 •

Copy link
Copy Markdown
Contributor

Related: devcontainers/spec#484, microsoft/vscode-remote-release#10095

The templates apply command now exposes a flag --omit-paths. Following the same file/folder syntax as shown in devcontainers/spec#484, the provided array of paths will not be extracts from the tarball when applying a Template.

Expanded upon getBlob()'s existing filtering logic.

@joshspicer
joshspicer requested a review from a team as a code owner August 1, 2024 21:47
@joshspicer joshspicer changed the title Add --omit-paths flag to templates apply Aug 1, 2024
@joshspicer joshspicer changed the title Add --omit-path flag to templates apply Aug 1, 2024
Comment thread src/spec-node/templatesCLI/apply.ts Resolved
@joshspicer
joshspicer force-pushed the joshspicer/omit-paths branch from 59885af to ff4e5a9 Compare August 9, 2024 20:26

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@joshspicer

joshspicer commented Aug 12, 2024 •

Copy link
Copy Markdown
Contributor Author

Manual integration test on MacOS ✅ (see directory tree is missing .github)
image

@joshspicer

Copy link
Copy Markdown
Contributor Author

Manual integration test on Windows ✅ (see directory tree is missing .github)
image

@joshspicer
joshspicer merged commit fcefe52 into main Aug 12, 2024
@joshspicer
joshspicer deleted the joshspicer/omit-paths branch August 12, 2024 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants