adorsys/datasafe

View on GitHub
datasafe-cli/src/main/java/de/adorsys/datasafe/cli/commands/profile/Delete.java

Summary

Maintainability
A
0 mins
Test Coverage
package de.adorsys.datasafe.cli.commands.profile;

import picocli.CommandLine;

@CommandLine.Command(
        name = "remove",
        aliases = "rm",
        description = "Removes user profile and his files"
)
public class Delete implements Runnable {

    @CommandLine.ParentCommand
    private Profile profile;

    @Override
    public void run() {
        profile.getCli().datasafe().userProfile().deregister(profile.getCli().auth());
    }
}