sirius.kernel.health.console.EnvCommand Maven / Gradle / Ivy
/*
* Made with all the love in the world
* by scireum in Remshalden, Germany
*
* Copyright by scireum GmbH
* http://www.scireum.de - [email protected]
*/
package sirius.kernel.health.console;
import sirius.kernel.commons.Strings;
import sirius.kernel.commons.Values;
import sirius.kernel.di.std.Register;
import javax.annotation.Nonnull;
import java.util.Map;
/**
* Reports all known environment variables.
*/
@Register
public class EnvCommand implements Command {
@Override
public void execute(Output output, String... params) throws Exception {
String filter = Values.of(params).at(0).toLowerCase();
output.apply("%-39s %40s", "NAME", "VALUE");
output.separator();
for (Map.Entry