1
2
3
4
5
6 package gov.nist.secauto.oscal.tools.cli.core.commands.profile;
7
8 import gov.nist.secauto.metaschema.cli.processor.CLIProcessor.CallingContext;
9 import gov.nist.secauto.metaschema.cli.processor.ExitStatus;
10 import gov.nist.secauto.oscal.tools.cli.core.commands.AbstractResolveCommand;
11
12 import org.apache.commons.cli.CommandLine;
13 import org.apache.logging.log4j.LogManager;
14 import org.apache.logging.log4j.Logger;
15
16 import edu.umd.cs.findbugs.annotations.NonNull;
17
18 public class ResolveSubcommand
19 extends AbstractResolveCommand {
20 private static final Logger LOGGER = LogManager.getLogger(ResolveSubcommand.class);
21
22 @NonNull
23 private static final String COMMAND = "resolve";
24
25 @Override
26 public String getName() {
27 return COMMAND;
28 }
29
30 @Override
31 protected ExitStatus executeCommand(CallingContext callingContext, CommandLine cmdLine) {
32 LOGGER.atWarn().log("This command path is deprecated. Please use 'resolve-profile'.");
33
34 return super.executeCommand(callingContext, cmdLine);
35 }
36 }