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

Add option to append a folder to the default directory as a base dir #6

Open
Twigonometry opened this issue Jun 1, 2021 · 0 comments

Comments

@Twigonometry
Copy link
Owner

If default directory has been overriden, have option to use it as a base directory and append a suffix to the source

For example:

  • default_dir="/home/user/vault/writeups" in .env
  • run with command line argument to use default dir: python3 writeup-converter.py DEFAULT /path/to/attachments/ /path/to/target/ /path/to/target/attachments/ (will read from /home/user/vault/writeups/ as the source)
  • run with a flag to append a string to the base dir: python3 writeup-converter.py --base-append "/htb/blue" DEFAULT /path/to/attachments/ /path/to/target/ /path/to/target/attachments/ (will read from /home/user/vault/writeups/htb/blue/ as the source)
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

1 participant