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

io.github.xfournet.jconfig.cli.command.ApplyCommand Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
package io.github.xfournet.jconfig.cli.command;

import java.nio.file.Paths;
import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters;
import io.github.xfournet.jconfig.cli.Command;
import io.github.xfournet.jconfig.cli.CommandContext;

@Parameters(commandNames = "apply", commandDescription = "Apply configuration file to a directory")
public class ApplyCommand implements Command {

    @Parameter(names = {"--config", "-c"}, description = "Configuration file to be applied", required = true)
    private String m_confFile;

    @Override
    public void execute(CommandContext ctx) {
        ctx.getJConfig().apply(Paths.get(m_confFile));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy