jacobdeichert / mask

🎭 A CLI task runner defined by a simple markdown file
MIT License
1.11k stars 55 forks source link

Ideas: Add enums, filepath, dirpath, constants #91

Open Swoorup opened 1 year ago

Swoorup commented 1 year ago

Thoughts on adding enums, file path, directory path types to options? These options allow restricted subset of strings to be passed as flags

jacobdeichert commented 1 year ago

Specifying a list of accepted values for a flag/option could be a nice user experience (preventing typos, documentation).

A file/directory path flag type could be nice as well. We could verify it's correctly formatted before it reaches the script.