001/*
002 * SPDX-FileCopyrightText: none
003 * SPDX-License-Identifier: CC0-1.0
004 */
005
006package gov.nist.secauto.metaschema.cli.commands.metapath;
007
008import gov.nist.secauto.metaschema.cli.processor.command.AbstractParentCommand;
009
010/**
011 * This sub-command implementation contains all command that relate to Metapath
012 * execution.
013 */
014public class MetapathCommand
015    extends AbstractParentCommand {
016  private static final String COMMAND = "metapath";
017
018  /**
019   * Constructor for a new Metapath command.
020   */
021  public MetapathCommand() {
022    addCommandHandler(new ListFunctionsSubcommand());
023    addCommandHandler(new EvaluateMetapathCommand());
024  }
025
026  @Override
027  public String getName() {
028    return COMMAND;
029  }
030
031  @Override
032  public String getDescription() {
033    return "Perform a Metapath operation.";
034  }
035}