-
Notifications
You must be signed in to change notification settings - Fork 5
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(cmd): use dot to specify current dir when using --outdir flag #557
base: main
Are you sure you want to change the base?
feat(cmd): use dot to specify current dir when using --outdir flag #557
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like the change in default behavior for --output-dir
. Using the user's home directory is safer than using the current directory. No one can guarantee that someone won't run a command like furyctl dump template -c /dir1/dir2/dir3/furcytl.yaml
and write it to the current directory (which is unknown) instead of using the user's home.
IMHO the user's home should be the default and the check for the --output-dir == .
should be added in addition.
Moreover the fix doen't work in case of
With the old
|
Signed-off-by: luigidematteis <[email protected]>
8e15603
to
8b70b51
Compare
Hi @g-iannelli, I got your point, but this change was only for the Regarding the I made a fix for that as well. |
Summary
This PR solves the issue #508.
In addition to the
--outdir
flag for theapply
command, the same behavior has been implement also for the other commands that use the same flag, which are:delete cluster
,diff
,connect openvpn
anddump template
.Testing
furyctl apply --outdir .
works without issues:dump template
commanddump template --workdir x --outdir .
works as expected (the .furyctl is created in the current directory, not in the workdir)diff
commandconnect openvpn
commandWork in progress...
delete cluster
commandBreaking changes:
There are not breaking changes.