-
Notifications
You must be signed in to change notification settings - Fork 2
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
Operate On A Single File #7
Comments
It's actually possible to do this:
And inky will process |
Hmm this is kind of interesting... looking into it, if the 2nd argument (will from here forward call it I can see one of 2 ways to do this...
I believe number 2 is safer, but not clear if it's intuitive. @bdkjones do you care? @rafibomb @tdhartwick do you have opinions on the right way to do this? |
Other tools take a variety of approaches. Some have a specific --out-dir parameter that specifies a specific output folder. Others intuit what to do based on whether the output parameter ends with a file extension (if it does, use the last path component of the output parameter as the file name and all earlier path components as the directory to write to). Which approach doesn't matter to me as long as it's documented so I can use it! |
It would be helpful if the CLI allowed running inky on a single file instead of a globbed path.
Reason:
I'm integrating inky into CodeKit (codekitapp.com) as part of support for Foundation Emails. When a user saves a single HTML file, it's incredibly wasteful to process ALL html files. I'd like to supply inky with an input path to a single file and an output path to a single file (rather than a directory).
The text was updated successfully, but these errors were encountered: