All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aeontronix.enhancedmule.tools.GetRegistrationKeyCmd Maven / Gradle / Ivy

There is a newer version: 2.0.0-alpha4
Show newest version
/*
 * Copyright (c) Aeontronix 2019
 */

package com.aeontronix.enhancedmule.tools;

import com.aeontronix.enhancedmule.tools.anypoint.Environment;
import picocli.CommandLine;
import picocli.CommandLine.Command;

@Command(name = "getregkey", showDefaultValues = true, sortOptions = false,
        description = "Retrieve a server registration key (requires organization and environment to be specified)")
public class GetRegistrationKeyCmd extends AbstractEnvironmentCmd {
    @CommandLine.Option(names = {"-h", "--help"}, usageHelp = true, description = "Display this help message")
    boolean usageHelpRequested;

    @Override
    protected void execute(Environment environment) throws Exception {
        String key = environment.getServerRegistrationKey();
        System.out.println(key);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy