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

exo sshkey delete --all #87

Merged
merged 5 commits into from
Jan 29, 2019
Merged

exo sshkey delete --all #87

merged 5 commits into from
Jan 29, 2019

Conversation

pierre-emmanuelJ
Copy link
Member

@pierre-emmanuelJ pierre-emmanuelJ commented Jan 21, 2019

Delete all sshkey in a single command

Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>
return err
}
if err != nil {
fmt.Fprintln(os.Stderr, err) //nolint: errcheck
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should move this line in the previous if err != nil block.

Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>
if err != nil {
return err
}

fmt.Println(res)
//XXX Create a function to execute non async tasks asynchronousely
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Yoan Blanc added 3 commits January 23, 2019 16:26
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
Signed-off-by: Yoan Blanc <yoan.blanc@exoscale.ch>
@greut greut dismissed mcorbin’s stale review January 29, 2019 14:09

@mcorbin feel free to do another one.

if err := deleteSSHKey(sshkey.Name); err != nil {
return err
}
fmt.Println(sshkey.Name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: it could be nice to have a message like successfully deleted key <key_name>.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that wouldn't be consistent though.

@greut
Copy link
Contributor

greut commented Jan 29, 2019

thanks @mcorbin

@greut greut merged commit 1544298 into master Jan 29, 2019
@greut greut deleted the sshkey-delete branch January 29, 2019 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants