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

convex.cli.LocalGUI Maven / Gradle / Ivy

package convex.cli;

import convex.api.Applications;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import picocli.CommandLine.Command;
import picocli.CommandLine.ParentCommand;

/**
 *
 * Convex Local Manager sub command
 *
 *		convex.local.manager
 *
 *
 */
@Command(name="gui",
	aliases={},
	mixinStandardHelpOptions=true,
	description="Starts a local convex test network using the peer manager GUI application.")
public class LocalGUI implements Runnable {

	private static final Logger log = LoggerFactory.getLogger(LocalGUI.class);

	@ParentCommand
	protected Local localParent;

	@Override
	public void run() {
		Main mainParent = localParent.mainParent;

		log.warn("You will not be able to use some of the CLI 'account' and 'peer' commands.");
		// sub command to launch peer manager
		try {
			Applications.launchApp(convex.gui.manager.PeerGUI.class);
		} catch (Throwable t) {
			mainParent.showError(t);
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy