joshuaskelly / quake-cli-tools

Command line tools for creating Quake content.
MIT License
75 stars 10 forks source link

Feature Request: Add all files to wad in given directory #21

Open jmickle66666666 opened 4 years ago

jmickle66666666 commented 4 years ago

Currently on windows you must pipe in a list of filenames to wad for it to add every file contained within a directory. For ease of use being able to specify a directory instead of individual filenames would be preferable.

This could be coupled with an argument to hard-replace an entire wad (deleting all entries before adding new ones). The use-case being maintaining a single folder of textures as a source directory, and using wad to generate a new wad file after making changes in the directory.

Piping dir /b into wad should work but currently I have not managed to get it working. If it did it would be possible to achieve this process with rm test.wad && dir /b test/*.png | wad test.wad, but this is clunky, and relies on test.wad already existing, creating an extra hassle.