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

Customize filename extension #111

Open
lilisha-unity opened this issue May 25, 2022 · 3 comments
Open

Customize filename extension #111

lilisha-unity opened this issue May 25, 2022 · 3 comments

Comments

@lilisha-unity
Copy link

Tried it today and it worked great! However, I would like to be able to customize the file name and file extension, such as:
bluehawk snip -o path/to/my-customized-filename.md <input-directory-or-file>

@mongodben
Copy link
Contributor

mongodben commented May 25, 2022

thank you for submitting the issue! we're adding to our roadmap.

i think the API would be something like:

bluehawk snip -o path/to/output_dir input-file.foo --ext bar 

and this'd create output-file.bar

@cbush
Copy link
Collaborator

cbush commented May 25, 2022

Thanks for raising @lilisha-unity! Can you tell us about how this will be used?

  • Expected behavior if input-directory contains multiple files? i.e. should the custom name be a template (instead of <sourcefile>.<snippetname>.snippet.<sourceextension>)? Or just a literal name that we write to?
  • Any assumptions about custom extension? For example, is ".md" expected to produce valid markdown or just whatever language while the file has md extension?

Thanks!

@mongodben mongodben changed the title Customize filename? Customize filename extension Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: On Deck
Development

No branches or pull requests

3 participants