cfg.EnvFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cfg Show documentation
Show all versions of cfg Show documentation
Application configuration key management.
The newest version!
package cfg;
import java.util.List;
public class EnvFunction implements Function {
@Override public int args() { return 1; }
@Override
public String eval(Cfg cfg, String base, String id, List args) {
String arg = cfg.cook(base,args.get(0)).trim();
return System.getenv(arg);
}
}