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

feat: add folding config #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

vicmattos
Copy link

No description provided.

@upsetbit
Copy link
Member

thanks @vicmattos!

I can accept your PR provided that (1) you update the usage/options section and (2) add some sort of test

if you can't, that's fine; I'll do it in the not-so-near future, when I can

@MrModest
Copy link

I believe for the test, you can add something like this:

# test `--no-folding`
figlet "folding"
run_playbook "absent" # clean the directory
run_playbook "present" "no" "yes"

# test if the directories were actually created and not symlinked
test -d "$HOME/.config" || exit 1
test -d "$HOME/.config/foo" || exit 1
test -L "$HOME/.config/foo/bar" || exit 1

assuming that the run_playbook function accepts a 3rd "no-folding" flag and if it's yes then adds the --no-folding flag

reference for the test: https://unix.stackexchange.com/questions/96907/how-do-i-check-if-a-file-is-a-symbolic-link-to-a-directory

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

Successfully merging this pull request may close these issues.

3 participants