Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify File Input Syntax #33

Open
h20282 opened this issue Nov 5, 2024 · 3 comments
Open

Simplify File Input Syntax #33

h20282 opened this issue Nov 5, 2024 · 3 comments

Comments

@h20282
Copy link

h20282 commented Nov 5, 2024

For large projects with many files, repeatedly adding them using the -i option (or --input-file) is cumbersome. The current approach looks like this:

hpp2plantuml `
-i path/to/aa.h `
-i path/to/ab.h `
...
-i path/to/zz.h

To avoid manually listing each file, I end up writing a shell script like this:

PowerShell (Windows):

Invoke-Expression "hpp2plantuml $(Get-ChildItem -Recurse -Include *.h, *.cpp, *.hpp | ForEach-Object { "-i $_" }) -o output.uml"

Shell (Linux):

hpp2plantuml `find . -name "*.h" -o -name "*.cpp" -o -name "*.hpp" | sed -En "s#./#-i ./#p" | tr '\n' ' '` -o output.uml

Why not simplify this by allowing hpp2plantuml . -suffix "*.cpp,*.hpp,*.h" to work directly

@thibaultmarin
Copy link
Owner

Doesn't hpp2plantuml -i "*.hpp" -i "*.h" -i "*.cpp" work?

@h20282
Copy link
Author

h20282 commented Dec 2, 2024

Doesn't hpp2plantuml -i "*.hpp" -i "*.h" -i "*.cpp" work?

not work for sub dir

@thibaultmarin
Copy link
Owner

thibaultmarin commented Dec 2, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants