-
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
|
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. |
Signed-off-by: luigidematteis <[email protected]>
92e519e
to
eb0783d
Compare
This PR solves the issue #508.
Now is possible to use
.
to specify the current directory when using the--outdir
flag.In addition to the
--outdir
flag for theapply
command, the same behavior has been implement also for the other commands that use it, which are:delete cluster
,diff
,connect openvpn
anddump template
.Tests
furyctl apply
:furyctl dump template
:furyctl diff
command:connect openvpn
command:Help needed
furyctl delete cluster
command: