Skip to content

feat: introduce file / path flag#242

Merged
jakobmoellerdev merged 2 commits into
open-component-model:mainfrom
jakobmoellerdev:file-flag
Jun 13, 2025
Merged

feat: introduce file / path flag#242
jakobmoellerdev merged 2 commits into
open-component-model:mainfrom
jakobmoellerdev:file-flag

Conversation

@jakobmoellerdev

Copy link
Copy Markdown
Member

What this PR does / why we need it

this refactors the flag implementations and adds a flag type for file paths so that it is easy to pass file / directory references via flag. this flag automatically stats the path and collects underlying filesystem information.

Which issue(s) this PR fixes

This prepares for various commands such as add cv which need to work with files / filesystems on a regular basis and could reuse a flag implementation that does the heavy lifting for them

@jakobmoellerdev jakobmoellerdev requested a review from a team as a code owner June 13, 2025 09:49
@github-actions github-actions Bot added kind/feature new feature, enhancement, improvement, extension size/m Medium labels Jun 13, 2025
@github-actions github-actions Bot added the area/documentation Documentation related label Jun 13, 2025
this refactors the flag implementations and adds a flag type for file paths so that it is easy to pass file / directory references via flag. this flag automatically stats the path and collects underlying filesystem information.

@Skarlso Skarlso left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks okay, just questions.. :)

Comment thread cli/internal/flags/file/flag.go
Comment thread cli/internal/flags/file/flag.go Outdated
Comment thread cli/internal/flags/file/flag.go
@jakobmoellerdev jakobmoellerdev merged commit d4c6af0 into open-component-model:main Jun 13, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature new feature, enhancement, improvement, extension size/m Medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants